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 JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What is bufferedreader in java?
What is the difference between applet and application?
What is complexity and its types?
What are the data types supported by java? What is autoboxing and unboxing?
What is meant by null and void?
Why is java called the platform independent programming language?
What does t in java mean?
What are the different ways of implementing thread? Which one is more advantageous?
What data type is string java?
What is the difference between checked exception and unchecked exception?
Why does abstract class have constructor?
What is lambda programming?
How do I enable java in safari?
How can we find the actual size of an object on the heap?