========================= 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 ============================