Answer Posted / ranganathkini
public static void main( String[] args )
1. public - declares that the main method is publicly
accessible to other classes
2. static - declares that the main method can be invoked
without creating an instance of the class
3. void - declares that the main method does not return any
value.
4. main - defines the name of the method
5. String[] args - defines a parameter to the main method
which will contain any command line options passed by the
user when invoking the progam.
These command line options will be passed to the program as
an array of string objects.
Is This Answer Correct ? | 182 Yes | 6 No |
Post New Answer View All Answers
Java.util.regex consists of which classes?
What does regex mean?
What is extension method in java?
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
What is tree in java?
Write a java program to check if a number is prime or not?
How to handle a web browser resize operation?
What is difference between Heap and Stack Memory?
What is the syntax and characteristics of a lambda expression?
What is proper subset?
What do you understand by soft reference?
Does java isempty check for null?
Difference between this() and super() ?
Why is stringbuffer thread safe?
Differentiate between overriding and overloading cases?