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 mnemonic code?
What is an interface in java?
What is a private class in java?
What happens to the Exception object after handling an exception?
Similarity and difference between static block and static method ?
What is a flag variable?
What is complexity and its types?
Explain java coding standards for interfaces?
Why are functions called methods in java?
what is encapsulation in java? Explain
how to one war file class to another war file class?
Why java is said to be pass-by-value ?
What is the purpose of the return statement?
Is string passed by reference in java?
What are the different types of inner classes?