is inheritance replicated or shared? for example, if the dog inherits the animal class, and the property changes in the dog, will the attributes in the animal also change together? If the object is instantiated with dog and animal, is the attribute
Inheritance: Extracts the same content from multiple classes. Defined in a class, other classes simply inherit the class. You can use the properties exposed by the class and the exposed methods.?Advantages of inheritance: improve code reusability.
Windows builds a Java environment1. Download the Java Development Tools JDK installation package: http://www.oracle.com/technetwork/java/javase/downloads/index.htmlClick to jump to next pageSelect the desired version downloadDownload complete,
1. What is IS-A,HAS-A,LIKE-A?In the field of object-oriented design, there are several kinds of design ideas, mainly the following three kinds:Is-a, Has-a, like-aIn Java, there are many manifests in classes, interfaces, and abstract classes.Read
Synchronous asynchronous, blocking non-blocking for I/o:Blocking: The thread waits when the data required to perform the operation is not readyNon-blocking: The thread does not wait when the data is not readySync: Perform operations, wait until the
Variable
Variable: A piece of storage space in memory that is the basic unit for storing data.
Use: Declare first, then assign value, in use.
Declaration: Data type + variable name = value. (example: int a = 5;)
Data
The Java Virtual machine memory management diagram looks like this:1. Thread sharing area, which is shared by all threads, has several components in the thread sharing area:1. Method area: Run the constant-time pool, the class information that has
Relationship DiagramSingle-Instance set system---------| Collection The root interface of a singleton collection--------------| List inherits the collection Interface , features: orderly, repeat . ------------------| Arrarylist Inherit the list
Java Utility Class Library Java.util package. In this package, Java provides some useful methods and data structures.First, interface 1, collection
Interface
Starting from 1.2 There are
Inherit iterable
The root interface in the
The class that describes the thread: runable and thread belong to the Java.lang packageSecond, built-in lock synchronized belongs to the JVM keyword, built-in conditional queue operation Interface Object.wait ()/notify ()/notifyall () belongs to
1. After configuring the Java environment variables, you still cannot use Java commands. Workaround:
If this problem occurs with the WINDOWS10 system, it is because the individual WINDOWS10 system does not recognize the "Java_home"
Java Address Book System
This example shares the code of the Java Address Book System for your reference. The details are as follows:
Import java. util. strong; class Person {String name; String number;} class connect {Person a []; int number;
Hibernate framework study notes 5: cache, hibernate Study Notes
The cache exists not only in programs, but also in computer hardware and even in daily life.
Objective: To improve efficiency
For example, IO streams read and write bytes. If there is
Talking about Hibernate n + 1, talking about hibernate
The Session cache stores the correlated object graphs. By default, when Hibernate loads the Customer object from the database, it loads all associated Order objects at the same time. Take the
Easymybatis-a powerful tool for mybatis development, easymybatismybatis
Easymybatis is an enhanced class library for mybatis. It aims to simplify the development of mybatis and make development more efficient.
Git address: easymybatis
Demo
How to convert the Sprigmvc project to springboot, sprigmvcspringboot
Whether there is an old springmvc project. If you want to convert it into a springboot project, you can check this article.
Description
If your project is not a maven project,
Spring Boot Maven package executable Jar file implementation method, mavenjar
Maven pom. xml must contain
jar
org.springframework.boot spring-boot-maven-plugin true
Complete pox. xml
4.0.0
Hibernate cache mechanism instance code parsing, hibernate Cache
This article focuses on the relevant content of the Hibernate cache mechanism, as detailed below.Demo project:
Student. java:
Public class Student {/* Student ID */private int id;/*
Detailed explanation of the initial experience and simple error elimination code of Hibernate and the initial experience of hibernate
What is Hibernate and how many benefits it has. I think anyone who searches for such blog posts knows it, so I
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