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 boolean logic?
What is an anonymous class in java?
What are static methods?
what is difference between abstract factory and factory design patterns?
What is difference between synchronize and concurrent collection in java?
When try and catch block is used ?
What is escape analysis algorithm in JVM and how garbage collection actually worked n how it transfer the objects from one kind of space to other?
What is wrapper class html?
What is class level lock ?
What are access specifiers in java ?
0 Answers Akamai Technologies,
methods in Applet?
Can you extend more than one interface?