in a console we r giving java <class name> if r pressing
enter where it'll goes
Answer Posted / srujan jack
it transfers the class name to JVM then the JVM calls main() method using class name.
there fore the main() method must be declared with public & static.....
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is boolean data type in java?
What is double in java?
Why doesn't the java library use a randomized version of quicksort?
What is finally in Java?
What is thread safe singleton?
What is a wrapper method?
Why string is called as immutable?
What language is an assembler written in?
Which object oriented concept is achieved by using overloading and overriding?
What are the differences between forwarding () method and sendredirect() methods?
Can an arraylist be empty?
what is the difference between future and callable interface in java?
What is the best way to findout the time/memory consuming process?
What is main in java?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread