A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
Answer / Rishish Mishra
No, the main method is essential for executing any Java application. Without a main method, the program cannot be executed.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are class members by default?
how are methods defined?
What is OOP Language?
What is the difference between path and classpath variables?
Why put method is idempotent?
When arithmeticexception is thrown?
Which is better ascii or unicode?
How do you sing an Applet ?
What is the difference between replace and replace all?
what is class.forname() and how it will be useful ?
Explain about class in java?
what difference between throw and throws in exception handling.