Static Variables and Methods

AP Computer Science A· difficulty 4/5

A static nested class

  • A

    Cannot exist

  • B

    Belongs to the outer class but doesn't access outer's instance state

    check_circle
  • C

    Same as inner class

  • D

    Auto-instantiates

Explanation

Static nested = "namespaced"; no implicit reference to enclosing instance.

Want 10 more like this — adaptive to your weak spots?

Related questions