Question: Explain the following line used under Java Program public static void main (String args[ ]) The following shows the explanation individually public it is the

Explain the following line used under Java Program

public static void main (String args[ ])

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!