Explain the following line used under Java Program ? public static void main (String args[ ])

Java Programming Language >   Fundamentals of Object-Oriented Programming >   Benefits of OOP  

Short Question

982


Answer:

The following shows the explanation individually ?

public ? it is the access specifier.

static ? it allows main() to be called without instantiating a particular instance of a class.

void ? it affirns the compiler that no value is returned by main().

main() ? this method is called at the beginning of a Java program.

String args[ ] ? args parameter is an instance array of class String.


This Particular section is dedicated to Question & Answer only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.