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
Why string is immutable with example?
Can we have this () and super () together?
How do you use parseint in java?
What is module in oop?
Why java doesn’t support multiple inheritances?
How many ways can we create the string object?
List some important characteristics on jre
Why is sizeof not a function?
How do you decide when to use arraylist and linkedlist?
How do you sort data in java?
How objects of a class are created if no constructor is defined in the class?
What is passing by reference in java?
What is sortedmap in java?
Difference between arraylist and vector.
How many tetrahedral voids are there in bcc?