What is the use of static keyword in "public static void
main()"
Answer Posted / mary kamal
Static keyword is identified by jvm at the time of class loading,so main() function is the jvm known function it should be identified at the time of class loading...so hence it is named as static
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is autoboxing and unboxing?
How would you dynamically allocate memory to an array?
How to make a read-only class in java?
How does varargs work in java?
Is null an object java?
What is the difference between multitasking and multithreading in Java
What is covariant return type?
What are different access specifiers in java?
What is class level lock ?
Which class cannot be a subclass in java?
Can abstract class have private constructor?
Is hashmap thread safe?
Is void a keyword in java?
What is exception handling in java?
What is the static field modifier?