Which of the following statement(s) is/are correct regarding java programming?…
2021
Which of the following statement(s) is/are correct regarding java programming?
I. Place a semicolon immediately after a method header
II. Define a method outside the braces of a class definition
- A.
Only I
- B.
Only II
- C.
Both I and II
- D.
Neither I nor II
Attempted by 124 students.
Show answer & explanation
Correct answer: D
Both statements I and II are incorrect regarding Java programming.