What is the need to declare main() method as static in Java?
Answer Posted / juhi
If main method is static it should not be able to access any
other methods(other than static methods). but this is not
the case y?
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which class is the superclass of every class?
Where are group policies stored? : java security
explain isalive() method under thread class?
What is predicate in lambda expression?
Can the main method be declared final?
What are the differences between java’s old java date api and java 8’s date and time api?
What if I do not provide the string array as the argument to the method?
What is meant by java se?
What's the difference between code-based security and role-based security? Which one is better? : java security
In system.out.println(), what is system, out and println?
How do I find jre version?
how can we create the ui using netbeans,having the code?
Do I need jdk or jre?
Does jvm maintain a cache by itself? Does the jvm allocate objects in heap? Is this the os heap or the heap maintained by the jvm? Why
What is java lang noclassdeffounderror?