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
What is the function of java?
Explain a situation where finally block will not be executed?
What are the rules for variable declaration?
List any five features of java?
what is the purpose of using rmisecuritymanager in rmi?
Is string a data type in java?
What is the use of private static?
What is the difference between throw and throws keywords?
What are the features in java?
What is string immutability?
Explain java coding standards for classes or java coding conventions for classes?
What is a class reference?
When object is created and destroyed?
How does indexof work?
What is += mean in java?