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 meant by class?
What is abstraction in java?
0 Answers Akamai Technologies,
What are the advantages and disadvantages of object cloning?
string is immutable? right every one knows that, my question is it advantage or disadvantage making string immutable?
what is the difference between String and StringBuffer classes?
a thread is runnable, how does that work? : Java thread
Can static method access instance variables ?
What is private protected in java?
What is identifier in java?
What is basic concept of static in java ?
What are the different approaches to implement a function to generate a random number?
0 Answers Axtria, ITC Indian Tobacco Company,
Do you know thread pools?