What is the need to declare main() method as static in Java?
Answer Posted / shadab alam
static keyword specifies that there is no need of instance
to call static method and it's information is contained by
JVM that calls the static method.That's why we declare main
method as static so that it can be called automaticlly.
| Is This Answer Correct ? | 58 Yes | 11 No |
Post New Answer View All Answers
What is type_scroll_insensitive in java?
What is orm in java?
Do I need jdk or jre?
What is javabeans api?
What is log4j in java?
Is java secure? : java security
How do you find lambda?
Which is best framework in java?
What is ui framework in java?
Explain different way of using thread?
What is stateless in java?
Is jar an executable?
In hibernate what is the difference between the Session and SessionFactory?
Explain daemon thread.
For each of the following program segments,give a big zero
analysis for the running time
1.For (i=0;i