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 do you mean by an interface in java?
What is a consumer in java?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
What is java used for on a computer?
What is an error in java?
What is a marker interface?
Explain public static void main(string args[]) in java.
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
what is the purpose of "virtual"?
Can we overload run() method in java?
Explain the difference between static and dynamic binding in java?
Does importing a package imports its sub-packages as well in java?
how to split string in java?
What is the difference between static and global variables and also define what are volatile variables?
What are the types of methods in java?