Multiple choice technology business process management

Correct method naming convention in java

  1. getMethod

  2. get () method

  3. getMethod()

  4. get.Method()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The standard convention for method names in Java uses camelCase followed by parentheses representing the parameter list, such as getMethod(). Names without parentheses or containing spaces or dots are invalid method identifiers.