Calling a Non-void Method

AP Computer Science A· difficulty 3/5

A method declared with return type <code>void</code>

  • A

    Returns 0

  • B

    Returns null

  • C

    Cannot return at all

  • D

    Returns nothing (no value)

    check_circle

Explanation

<code>void</code> methods return no value; <code>return;</code> with no value is allowed.

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

Related questions