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 are some characteristics of interference class?
What is an object in java?
Can an abstract class be a final class?
Why are variables important in research?
What is a native method in java programming?
What exactly is java?
What are reference variables in java?
What are the different types of constructor?
What is the reason behind using constructors and destructors?
What is the use of put method?
Will set allow duplicates in java?
What are the 8 primitive data types in java?
Explain thread life cycle in java?
What is array list in java?
Is void a wrapper class?