3 Java Notes

Source: Internet
Author: User

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

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.