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
List any five features of java?
What are the advantages of java inner classes?
How do you write a good declaration?
What is immutable state?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
What is a condition in programming?
How do you convert bytes to character in java?
Can we have multiple public classes in a java source file?
Explain heap sort?
What is the major drawback of internal iteration over external iteration?
Why are generics used?
What is abstract class? Explain
Why set is used in java?
What is java abstraction with example?
How can we access some class in another class in java?