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 |
What is keyword and identifier?
Name the method that is used to set a TextComponent to the read-only state?
Can we override constructors?
Explain Event handling in AWT?
What is the difference between an array and an array list?
How is java hashmap implemented?
Differentiate between nested and inner class in java.
0 Answers Akamai Technologies,
How long will it take to learn java?
What are register variables what are the advantages?
What is an anonymous class?
How do you compare two objects?
What is mean by UML? what is the use? where we are using?