[Java 2 from entry to entry] record

Source: Internet
Author: User

========================= Part I ==========================

Object-Oriented programming supports packaging, inheritance, and polymorphism.

Constructor and Terminator: constructor, memory unit recycler, and terminator.

 

Chapter 4 Use Java objects

1. Introduction to Object-Oriented Programming

2. Data Structure

3. From structure to class Packaging

4. Inheritance

5. abstract class

6. Polymorphism

7. Reload

8. Interface

9 constructor and Terminator

Chapter 3 data types, modifiers, and expressions

There are three types of Java data: Basic built-in data types (or basic types), system classes (defined in Java core APIs), and user-defined classes. The built-in data types store basic unit information, for example, a single character, number, or real value.

1. Use Java syntax

The syntax of a language is used to define the timing, usage, and symbols of a word. Java syntax defines the following content:

A. Comments: a description added by the programmer for document creation.

B. Statement (Statements): a statement is a program.

C. Code block: A group of statements that constitute a unit.

D. File structure: component of the Java source File and its defined sequence.

E. Key words: pre-defined words in Java (cannot be used as identifiers ).

F. Identifiers: names of classes, variables, and functions. The START character and length of the identifier are limited, and there are some common Optional Rules.

G. Literals: constant value. The writing method varies depending on the data type. For example, "123" is a character and "123" is a number.

H. expression (Expressions): Calculate a numerical formula.

I. Operators: Operators complete addition, subtraction, multiplication, division, and other mathematical and non-mathematical operations.

| Source file structure:

The Java source file can only contain three statements outside the program block:

Package statement:

Import Statement:

Class statement:

2. Inherent Java Data Types

A. Variable description

B. Digital Data Type [1 byte = 8 bits]

C. Non-numbers and infinity

D. boolean data type

E. character data type

F. String Data Type

3. Class Declaration

A. code-block (program block ):

B. class-initializer (class initializer): static {code-block}

C. instance-initializer (instance initializer): {code-block}

D. Range rules

E. Java internal class

F. Java data type and function modifier (modifiers)

Chapter 2 Java classes, interfaces, and packages

Chapter 2 arrays and flow control statements

Chapter 4 Exception Handling

Chapter 1 threads and Multithreading

Http://lavasoft.blog.51cto.com/62575/222742

========================= Second part ============================


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.