Answer Posted / saravanan.v
Java is a object oriented language.So even main method also should be written inside a class name main class.So main method should be called WITHOUT CREATING OBJECT for main class.For this purpose, it is declared as static.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Why we use protected in java?
What is class level lock ?
What is final, finally, finalize?
What are the new features in java 8? Explain
What is an eror in java?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
What is meant by class?
How does map works in java?
What are the advantages of inner classes?
Which is faster set or list in java?
Is static variable stored in heap?
Why declare Main() inside the class in java ?
What do you mean by exception handling in Java?
What is the base class for error and exception?
What are inner classes or non static nested classes in java?