In Java why we write public static void main(String args[])
why not main()?

Answer Posted / shiva

In entire java program main() executes only once, so that
so that it is static.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a finally block? Is there a case when finally will not execute?

550


Give reasons supporting that string is immutable.

500


What are green threads in java?

555


What is a numeric digit?

586


What is methods and methodology?

535






What's the base class of all exception classes?

566


What are the differences between stringbuffer and stringbuilder?

541


how are methods defined?

555


How to use Media tracker Class.

648


What is difference between variable declaration and definition?

515


How to instantiate static nested classes in java?

566


What is a literal coding?

513


What is static keyword in java?

553


What are the basic control structures?

501


What all methods are used to prevent thread execution ?

558