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 static variable and static method?

32 Answers   Accenture, Prolific, Prolifics, TCS, TNH,


What is the purpose of interface?

0 Answers  


What data type is a string?

0 Answers  


What is entry set in java?

0 Answers  


int a=1; float b=1.0; System.out.println(a==b);

13 Answers   CTS, Honeywell, McAfee,






How to sort a vector elements that contains the user define class object? (Note: If Suppose consider, A Student class contain two data members. They are String studentName and int rollNo. I am creating Four objects for this class, each object contains students details like name and roll no. Now i am storing that objects in vector and if i retiving the elements from the vector means then it should be display in sorting order)

3 Answers   ProdEx Technologies,


if arraylist size is increased from initial size what is the size of arraylist...suppose initial is 100 , if i add 101 element what is the size...

10 Answers  


In java, what is the difference between method overloading and method overriding?

0 Answers  


What is I/O Filter?

2 Answers   TCS, WAX,


How a string is stored in memory?

0 Answers  


What is the life-cycle of an object?

2 Answers   Broadridge, Syntel,


What is the purpose of javac exe?

0 Answers  


Categories