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 are the authentication modes in asp.net? : java security
Is jdk required for netbeans?
Explain different way of using thread?
How do I know if I have jre or jdk?
Is it correct to say that using parentheses can only change?
Is php faster than java?
What is aop in java?
What is @override annotation in java?
What is a stream in programming?
What is custom tag in java?
What is the meaning of loosely coupled in java?
What is the difference between swing and awt components?
Do I need to install jre if I have jdk?
What is java web application?
explain how java se 8 data and time api solves issues of old java date api?