in a console we r giving java <class name> if r pressing
enter where it'll goes

Answers were Sorted based on User's Feedback



in a console we r giving java <class name> if r pressing enter where it'll goes..

Answer / sai

It'll goes to the JVM and then executes..

Is This Answer Correct ?    8 Yes 1 No

in a console we r giving java <class name> if r pressing enter where it'll goes..

Answer / 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

More Core Java Interview Questions

Explain about wait() method?

0 Answers  


Do you need to import math in java?

0 Answers  


Can we override constructor in java?

0 Answers  


How to do encapsulation in java?

0 Answers  


What is size () in java?

0 Answers  






What is bean? Where it can be used?

0 Answers  


What is r * in math?

0 Answers  


How are the elements of a gridbaglayout organized in java programming?

0 Answers  


What is a for loop in java?

0 Answers  


What are different type of exceptions in java?

0 Answers  


what are the uses of Class class and what it returns? explain it with the example code.

1 Answers  


How do you clear a list in java?

0 Answers  


Categories