Hit helloworld all over the Internet

Source: Internet
Author: User

Explain the meaning of all content in helloworld:

Public class helloworld {public static void main (string [] ARGs) {system. Out. println ("Hello, world! ");}}

  1. Public: the class/method/variable modified by the access modifier can be accessed anywhere in the program.
  2. Class: declares a class keyword. Class classname indicates declaring a class named classname.
  3. Helloworld: Class Name.
  4. Static: static modifier. The method/variable modified by the modifier is first loaded in the program, prior to class instantiation, it can be understood that as long as the program runs the static modified content until the program exits.
  5. String [] ARGs: A String Array named args.
  6. Main (): The main method serves as the entry to the program.
  7. System: A Java class.
  8. Out: an attribute of the system class.
  9. Println: Used to output a string on the console.

Hit helloworld all over the Internet

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.