Why do we need public static void main(String args[])
method in Java...?
Answer / shadow
We need
• public: The method can be accessed outside the
class / package
• static: You need not have an instance of the class
to access the method
• void: Your application need not return a value, as
the JVM launcher would return the value when it exits
• main(): This is the entry point for the application
If the main() was not static, you would require an instance
of the class in order to execute the method.
....!
$HADOW
| Is This Answer Correct ? | 14 Yes | 0 No |
Can we sort a map in java?
How infinite loop is declared?
Matrix multiplication only using OOP concepts .
What is flag in java?
What is a war file?
Which java.util classes and interfaces support event handling?
Can java hashmap have duplicate keys?
What are the latest versions in JAVA related areas?
Is there is any difference between a scrollbar and a scrollpane?
What are mutable classes?
Why there are some null interface in java? What does it mean?
What are the 4 types of research methods?