how to execute main()

Answers were Sorted based on User's Feedback



how to execute main()..

Answer / suresh royal

main() method is the JVM known method so jvm
will start the exicution from main method ,that main() method is static so no need to call

Is This Answer Correct ?    16 Yes 0 No

how to execute main()..

Answer / sadikhasan palsaniya

main method is executed by JVM. User cant execute it.

Is This Answer Correct ?    1 Yes 1 No

how to execute main()..

Answer / atul

main() is execute by the jvm.if class have main()method &
class loader is load class in method area.
then Jvm call main() method;

Is This Answer Correct ?    0 Yes 0 No

how to execute main()..

Answer / karthika

By using object creation,we can execute main method.

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More Core Java Interview Questions

whats the difference between == and .equal ?

10 Answers   Cisco,


Describe the Big-O Notation.

0 Answers   Global Logic,


java is puerly object oriented or not ?

5 Answers  


What is the difference between static and global variables and also define what are volatile variables?

0 Answers   Flextronics, Hexaware,


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

0 Answers  


Can you use abstract and final both with a method?

0 Answers  


What access modifiers can be used for methods?

0 Answers  


Explain the difference between throw and throws in java?

0 Answers  


What is formatted output?

0 Answers  


Write a function for palindrome and factorial and explain?

0 Answers   Honeywell, Huawei, Zomato,


In which language JVM (Java Virtual Machine) is implemented

5 Answers  


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

0 Answers  


Categories