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
Does string is thread-safe in java?
Can a java program have 2 main methods?
What is the size of integer?
How destructors are defined in java?
Explain the access modifiers for a class, method and variables?
How many arguments can a method have java?
What are peerless components in java programming?
What is the private method modifier?
What are the different approaches to implement a function to generate a random number?
how to run ecllipse with jettyserver for windows environment using batch file
Compare java and python.
What is the final variable?
What is java reflection?
What is toarray method in java?
What is broken and continue statement?