why java main method is given as static method?

Answer Posted / chaithanya

main method is called by JVM.without creating the object we are calling main.that's what it is declared Static.
static nothing but without creating the object,we can call that method

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between a threads start() and run() methods? : Java thread

516


Can we write any code after throw statement?

599


Explain aggregation in java?

543


Which one will take more memory: an int or integer?

765


Is null a value?

554






What is queue in java?

552


Java is Pass by Value or Pass by Reference?

616


What is a wrapper method?

528


When do we use hashset over treeset?

523


What is a final class in java?

539


What do you mean by object?

538


Can we create our own daemon thread?

532


What is reflexive association?

999


Can we write method inside a method in java?

519


What is the integer of 16?

531