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
Differentiate jar and war files?
What does string mean in java?
How will you get the platform dependent values like line separator, path separator, etc., ?
Define locale.
what is function overloading in java?
What is general methodology?
Tell me about your ability to work under pressure
Is math class static in java?
What is try-with-resources in java?
Why do we need data serialization?
Can we have multiple public classes in a java source file?
What is the purpose of using java.lang.class class?
What is Recursion Function?
Why does java doesnt suuport unsigned values?
What is files manifesting?