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 the synchronized method modifier?
What methodology can be utilized to link to a database?
What are the steps in the jdbc connection?
What is flush buffer?
How is string immutable in java?
How many arguments can a method have java?
What does @override mean?
Can we declare an array without size in java?
How do you define a set in java?
How does multithreading take place on a computer with a single cpu?
What are synchronized blocks in java?
What is r in java?
What are the types of casting?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
What are different types of encoding?