Main Line Assignment Help

Assignment Help: >> First Java Program - Main Line

The Main Line

public static void main(string args[ ])

  1. The main method must be declared as public, because it must be called by outside of its class
  2. The keyword static permits main() to be called without having to instantiate a particular instance of the class. This is must because main () is called through the Java interpreter before any objects are made.
  3. The key term void tells the compiler that main () does not return any value.
  4. The argument to main() is an array of string objects. Whether the command line arguments are used in this program or not, but they have to be there since they contain the arguments invoked on the command line.
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd