InterviewSolution
Saved Bookmarks
| 1. |
Which of the below is invalid identifier with the main method?(a) public(b) static(c) private(d) finalThe question was posed to me in unit test.Query is from JDK-JRE-JIT-JVM in division Java Environment & OOPS Concepts of Java |
|
Answer» CORRECT option is (C) PRIVATE Easy EXPLANATION: main method cannot be private as it is invoked by external method. Other identifier are valid with main method. |
|