Writing Methods

AP Computer Science A· difficulty 3/5

A method signature in Java consists of

  • A

    Just the name

  • B

    Whole method body

  • C

    Return type and name

  • D

    Method name and parameter list

    check_circle

Explanation

Signature: name + ordered list of parameter types.

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

Related questions