1 garbage collection mechanism can improve programming efficiency.
2 completion of the garbage Back mechanism protection program
3 Object-oriented three basic features: inheritance, encapsulation, polymorphism
4 Object-oriented approach: OOA (object-oriented analysis), OOD (object-oriented design) and OOP (object-oriented programming) three components
5 Java is object-oriented, but Java's method body does have a structured program flow
6 The basic idea of object-oriented is programming with the basic concepts of class, object, inheritance, encapsulation, message, etc.
7 polymorphism refers to a subclass object that can be assigned directly to the parent class variable, but the runtime still shows the behavior characteristics of the subclass
8 message is the mechanism by which an instance communicates with another instance
9 Java does not support multiple inheritance
10 Unified Modeling Language (UML) is generally divided into static and dynamic graphs
One- use case diagram : Describes the series of functions provided by the system, each of which represents a functional module of the system
12 class Diagrams: Class diagrams represent which entities should be included in the system, and how each entity is associated
13 If a class change causes another class to change, it is said that there is a dependency between the two classes
14 for Java programs, reusable components are usually packaged as a jar, or a war file
15 The sequence diagram describes the interaction between objects
All other than 8 basic type values in Java, everything else is an object, and Java describes the state of an object by defining member variables for the object
The Java language does not allow access to objects, but rather accesses objects by reference to the object
Java is a strongly typed language: All variables must be declared before they are used; A variable of the specified type can only accept values that match the type
Java Annotation Method:
- Single-line comment double slash//
- Multi-line Comments Use/* */annotate the required content
- Document comments
3 Java Notes