Which of the following is/are correct about java programming?
Which of the following is/are correct about java programming?
I. All functions in java must be members of some class
II. Member functions are called methods in java
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
Java has no free-standing functions: every method must belong to a class, and member functions are called methods. Both are correct.