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
Can we access instance variables within static methods ?
Explain about features of local inner class?
What does string intern() method do?
How do you write methodology?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
what is a thread pool in java and why is it used?
Is string thread safe in java?
What is hash code collision?
What are the advantages of autoboxing?
What java is used for?
When will we use them?
Is array primitive data type in java?
What do you mean by thread safe?
How can you read an integer value from the keyword when the application is runtime in java? example?
What is the do while loop syntax?