Static Variables and Methods

AP Computer Science A· difficulty 4/5

A <code>static</code> method

  • A

    Always returns void

  • B

    Always public

  • C

    Belongs to the class, not any specific instance

    check_circle
  • D

    Cannot be called without an object

Explanation

Called as <code>ClassName.method()</code>; cannot use <code>this</code>.

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

Related questions