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 |
Why there is no call by reference in java?
how can you take care of mutual exclusion using java threads? : Java thread
How to retrieve data from database in java using arraylist?
What is size of int in java?
What is a class in java?
What is treeset in java?
whatis Home interface and Remoteinterface? with example?
What is a nested list?
What are autoboxing and unboxing? When does it occur?
What is the method in java?
What does three dots mean in java?
What is structure of java heap? What is perm gen space in heap?