Java Interview Note 1

Source: Internet
Author: User

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

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.