The first chapter of Java

Source: Internet
Author: User

A. Computer program:

A collection of CLUE commands written to allow the computer to perform certain operations or solve a problem!!!

Two. There are three types of Java technology

①java SE (Standard Edition)

②java EE (Enterprise Edition)

③java ME (Mobile version)

Three. Three steps to develop a Java program

1. Writing.

The ① file name must match the class name.

②java are strictly case sensitive.

2. Compile.

①javac file name. java

② files that produce class suffix names

3. Running

①java file name

② Display Content

Code parsing:
public class demo{Outer frame
public static void Main (string[] args) {Program entry
System.out.println ("java!! Hello! "); Content Line Wrapping
System.out.print ("hello!"); Content does not change line
}
}

Transfer character

\ t space (tab 8 spaces) \ n line break

Comments

Double slash line Comment

/* * * Multi-line Comment

JDK Environment variables

① Install the JDK, locate the root directory,

Create an environment variable named Java-home that contains the contents of the JDK root directory.

② find the PATH environment variable and add the bin root directory of the JDK to the front of the path variable content. (Note to add ";" separated by semicolons).

The first chapter of Java

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.