Q. Which of the following is the correct syntax for calling a method in Java?
β
Correct Answer: (C)
myMethod(5);
Explanation: The syntax for calling a method in Java is to use the name of the method followed by any required parameters in parentheses.