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
Convert a BST into a DLL and DLL to BST in place.
What is java autoboxing?
Can we sort arraylist in java?
What is the use of static methods?
What is the difference between abstract classes and interfaces?
Can static methods access instance variables in java?
Which class is used by server applications to obtain a port and listen for client requests?
What is the char data type?
What is an interface in java?
What are functions in java?
What about instanceof operator in java?
Explain the difference between association, aggregation and inheritance relationships.
What is the base class of all exception classes in java?
Can I uninstall java?
What are the 6 boolean operators?