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 difference between super class & sub class?
How do you get the length of a string in java?
How is tree Mirroring implemented?
Define max and min heap, also the search time of heap.
What is the use of hashmap in java?
Explain what pure virtual function is?
What is hashset in java?
what is difference between equals and ==?
What is %02d?
What is object-oriented programming?
What is serial version uid and its importance in java?
Why inputstreamreader is used in java?
Does java support multiple inheritances?
What's the difference between comparison done by equals method and == operator?
What is difference between final and immutable?