201671010116.2016-2017-3 Java Programming

Source: Internet
Author: User
Tags naming convention

How 1.Java works: Java compiles the program into bytecode, and bytecode can be interpreted on any system that provides a Java virtual machine.

Source file: File name. java→ Bytecode file: file name. Class→java Virtual Machine Support program run

2.Java Program Common statements:

(1) public class: Common classes;

(2) System.out.println (): To achieve the output of a sentence;

The Basic program unit in 3.Java is a class, and there should be a public class in each program. The name of the class should conform to the naming convention and be compliant with professional specifications.

4. Each program must have an application main class, which mainly contains the public static void main (String args[]) this method. Each program can have only one main method.

The Process Control statement in 5.Java is the same as the C language.

6.Java is divided into three systems: Javase (JAVA2 Platform standard Edition,java platform), Java EE (Java 2 platform,enterprise Edition,java Platform Enterprise Edition), Javame (Java 2 Platform Micro Edition,java Platform mini version).

7.The Java language does not use pointers, not goto statements.

Eight basic data types for 8.Java

Integer: Short 2 byte int 4 bytes long 8 bytes byte 2 bytes

Float type: Float 4 bytes Double 8 bytes

Character type: Char 2 bytes

Boolean: Boolean this is dependent on the compilation environment

The 9.Java language consists mainly of the following five elements: identifiers, keywords, literals, operators, and separators. These five kinds of elements have different grammatical meanings and constituent rules, they cooperate with each other and accomplish the semantic expression of the Java language together.

-------Li Na

201671010116.2016-2017-3 Java Programming

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.