Java Syntax Basics (i) 19th,feb

Source: Internet
Author: User

1 . Basic structure of Java program

2. Identifiers

(1) Meaning:

Identifiers can be simply understood as a name that identifies a sequence of valid numbers for a class name, variable name, method name, array name, and file name.

(2) Naming rules:

① is composed of letters, numbers, underscores, and dollar signs, the first character cannot be a digit;

② the letters in the Java language can make Any character in the Unicode character set, including the legal identifiers in the Latin alphabet, Chinese characters, Japanese, and many other languages;

③ identifiers cannot make Java keywords and reserved words;

④ identifiers are strictly case-sensitive in the Java language.

3. Key words

Keywords are words that have been given a particular meaning in the Java language and cannot be used as identifiers.

Int

Public

This

Finally

Boolean

Abstract

Continue

Float

Long

Short

Throw

Throws

Return

Break

For

Static

New

Case

If

Double

Defoult

Byte

Do

Switch

Strictp

Package

Super

void

Try

Class

Else

Catch

Implements

Private

Final

Char

Extends

Volatile

While

Synchronized

instanceof

Proctecte

Importd

Transient

Interface

Dafaule

Attached: Mind Map of this lesson

Java Syntax Basics (i) 19th,feb

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.