What is the use of static keyword in "public static void
main()"

Answer Posted / p.r.gupta

the use of static is for static methods we need not to
create any object,so internally jvm calls like classname.method

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between null and void?

525


Explain all java features with real time examples

1204


How many inner classes can a class have?

570


What is boolean law?

512


Can we able to pass objects as an arguments in java?

530






Give some features of interface?

580


What is qualitative variable?

519


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

573


Is java a security risk?

559


What is the disadvantage of synchronization?

550


Why spring singleton is not thread safe?

560


What is a nonetype?

559


Tell me the latest versions in java related areas?

576


How do you create an array in java?

529


What is getkey () in java?

568