Hibernate: Open Source Object-relational mapping framework
CSS styles: inline > Internal > External
The final modified variable refers to the immutable reference, and the value of the object can be changed.
Object-oriented basic features:
1) Abstraction: Abstraction ignores aspects of a topic that are not relevant to the current goal in order to pay more attention to the aspects related to the current goal. Abstractions do not intend to understand all of the problems, but simply select one part of them, temporarily without some detail. Abstract includes two aspects, one is the process abstraction, the other is the data abstraction.
2) Inheritance: Subclasses have all non-private properties and methods of the parent class.
3) Encapsulation: Encapsulation is the process and data surrounded, access to data only through the defined interface. Object-oriented computing begins with this basic concept that the real world can be portrayed as a series of fully autonomous, encapsulated objects that access other objects through a protected interface.
4) Polymorphism: Different forms of expression of the same thing. Overrides, overloads, and claims of the parent class point to the object of the child class.
Overlord: In the same class, the method name is the same, the parameter list is different, overwrite: the parent class and the child class, the method name, the argument list, the return type are the same, the subclass's modifier permission and the throw exception cannot be higher than the parent class.
int is the basic data type of Java, and Integer is the basic type wrapper class provided after version 1.4, when both are member variables, the initial values are; int is 0;integer is null, and Integer provides some methods for manipulating integers. It also defines the maximum value of the integer value, the other basic types have corresponding wrapper classes, the appearance of the basic type wrapper class, making Java completely object-oriented.
|
Abstract class |
Interface |
|
Inherit Object |
Do not inherit |
|
There are constructors |
No |
|
Contains common member variables and constants |
Constants (public static final) |
|
Abstract, common method |
Abstract method (public abstract) |
|
can have final |
No |
|
Single inheritance, multiple implementations |
Multiple inheritance, not implemented |
|
There can be static methods |
No |
Java Interview Note 1