what is purpose of writting public static void main(Strind
arg[]) in java..?

Answer Posted / chandrakala

without placing "public",the program cannot be
executed..static is used becoz JVM's first priority will be
always given to static itself..so that without depending on
the object,we must execute the program.void main it used becoz
it wont allow returning any value.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override protected method in java?

575


What does %4d mean in java?

839


Is null false in java?

702


Can I extend singleton class in java?

618


What is meant by call by reference?

501






Which language is java?

538


What is currentthread()?

570


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

569


What are the types of web technologies?

520


What is the difference between keyword and identifier?

525


Which class represents the socket that both the client and server use to communicate with each other?

565


Give some features of interface?

580


Which sorting is best in java?

526


What is constructor and its types?

535


What is the Difference between Final Class && Abstract Class?

613