Java in layman's

Source: Internet
Author: User
The 1th chapter: Java Program structure
  1. source files, extension:. java. With the definition of the class. Class is used to represent a component of a program. There are classes in the original file, there are methods in the class, and there are statements in the method. 、
  2. First, execute the main function.

The first Java program was run today. Some of the necessary work has been done before running the Java program. For example, configure environment variables. When testing the first program, there is a problem, under Windows, you must first locate the folder in the CMD environment, the way to navigate to this folder is the CD \d folder path.

Compile the code first and compile it in Javac file name. java. Run the Java file name directly when running.

The first lesson of Java is that it feels simple.

Java in layman's

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: 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.