Static Variables and Methods

AP Computer Science A· difficulty 4/5

A <code>static</code> field

  • A

    Cannot be modified

  • B

    Has one copy shared across all instances of the class

    check_circle
  • C

    Has one copy per object

  • D

    Is private always

Explanation

Class-level data; shared by all instances.

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

Related questions