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

Answer Posted / sadikhasan palsaniya

static method can call without using Object name and can
call using Class name so JVM can use main method for execute it.
so it is require static keyword in main method. without
static JVM cant run Program.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is null an object in java?

559


What is a methodologist?

528


What is the use of private static?

531


What is an immutable class? How to create an immutable class?

533


What is the difference between math floor and math round?

499






What is the program compilation process?

584


How do you sort objects in java?

513


What is meant by structural programming?

549


What is tree in java?

487


What is the difference between post and put?

533


What is the do while loop syntax?

551


What will be the initial value of an object reference which is defined as an instance variable?

629


What are generic methods?

525


Explain reverse a linked list recursive java solution?

525


Is stringwriter thread safe?

548