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
What is jpa specification?
Can inner class final?
How do you format in java?
Can you pass functions in java?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
Explain the difference between jvm and jre?
What are the default and parameterized constructors?
How is a variable stored in memory?
Write a function to print Fibonacci series and Tribonacci series?
Difference between comparator and comparable in java?
What is the difference between menuitem and checkboxmenu item?
What are the five major types of reference sources?
What happens when a thread cannot acquire a lock on an object in java programming?
What are the various access specifiers in java?
How many types of memory areas are allocated by jvm?