Basic Java Learning 1

Source: Internet
Author: User

One, Java is a multi-functional high-level language: 1, can be used to develop small programs on the Web page, the application running on the desktop;

2, server-side middleware for client server resource communication;

3, can also be used for Web servers.

Second, the procedure design of 5 steps: 1, analysis (analysis requirements, establish mathematical model), 2, design (design steps and Algorithms), 3, coding implementation; 4, commissioning; 5, maintenance.

Three, the variable naming specification: 1, the identifier cannot be a keyword or true, false, null;

2, identifiers can contain letters, numbers 0-9, underscores (_), or dollar signs ($);

3, the first character of the identifier must be a letter, an underscore (_), or a dollar sign ($);

4, identifiers are case-sensitive and do not specify a maximum length.

IV. eight data types built into the Java language: 1, Byte Type (byte), 2, short integer, 3, Integer (int), 4, Long Integer (long), 5, single type (float), 6, double type (double), 7, character type (char), 8, The Boolean type (Boolean).

Five, Java Virtual machine is an abstract computer, through the actual computer simulation of various computer functions to achieve. Java Virtual machine has its own perfect hardware architecture, such as processor, stack, register, etc., also has the corresponding instruction system. The JVM masks information that is relevant to the operating system platform, allowing Java programs to run without modification on multiple platforms by generating only the target code (bytecode) that runs on the Java virtual machine.

VI. SELECT statements

1,if statements

if (Boolean expression) {

If the Boolean expression is true, the statement executed

}

2,if/else statements

if (Boolean expression) {

Executes when the Boolean expression is True

}

else{

Executes when the Boolean expression is False

}

3,switch statements

Switch (variable) {

Case Value:

Statement

break;//optional

Case Value:

Statement

break;//optional

There can be a lot of case statements

Default://Optional

Statement

}

Basic Java Learning 1

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.