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
How many bytes is 255 characters?
Which is bigger double or float?
What is an object’s lock and which object’s have locks?
What is the use of beaninfo?
How can a gui component handle its own events in java programming?
Can we have more than one package statement in the source file?
What is arrays sort in java?
How will you reverse a singly-link list?
What is the dot operator?
Why a dead thread occurs?
Implementations of set interface?
What are keywords and reserved words in java?
What differences exist between iterator and listiterator?
What is included in core java?
What is vector capacity in java?