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

What is the argument type of main() method?

2 Answers  


What is binary tree in java?

0 Answers  


how to make the double-tone class ? as we have singletone class..?

1 Answers   IBM, Microsoft,


Can we increase array size dynamically in java?

0 Answers  


Difference between object and reference?

0 Answers  






How many decimal places is a double?

0 Answers  


Which of these methods belong to Thread & Object class? join, yield, sleep, wait, notify

3 Answers   Ericsson,


Explain Global variables in Packages?

4 Answers  


What is the difference(or similarity if there are some) between object and a variable?

4 Answers   ME,


What is the difference between I ++ and ++ I in java?

0 Answers  


Who developed JScript language?

3 Answers  


diff between abstract methods and interfaces with programing (code) example?

2 Answers  


Categories