JAVA-Little knowledge
1. The difference between int and integer
Integer is the wrapper class for int, and int is a basic data type of Java
An integer variable must be instantiated before it can be used, and the int variable does not need
# # #面向对象 (Inheritance) # # #
1. Concept of inheritance: inheritance is a relationship between classes and classes, and is a relationship of "is a"
Parent class---> base class Subclass---> Derived class
Note: Inheritance in Java is
MD5 Tool Class
Using the JDK to encapsulate a simple MD5 tool class, the logic is relatively simple, directly attached to the specific implementation
public static string GetMD5 (string content) { string result = ""; try {
In-depth understanding of class loading mechanisms
Description
Before starting the text, I would like to say the purpose and benefits of writing these articles, mainly can make their own learning things to do a summary, sometimes spend a long
Spring Boot 2.x has been released for a long time, and now spring Cloud has released the Finchley version based on spring boot 2.x, and now it's time to do an overall framework upgrade for the project.
Pre-upgrade = + After upgrade
Spring Boot
Method One: Implement the package Test;import Java.io.file;import java.io.filewriter;import through an array java.io.ioexception;import Java.util.arraylist;import Java.util.list;import Java.util.random;public class ListData {public static void main (
1 File class
FileThe name of the (document) class is somewhat misleading; we may think that it refers to a document, but it is not. It can represent both the name of a particular file and the name of a group of files under a directory. In
Recently used to record a self-written demo
Using the @xmlrootelement annotation on the root element, name is the element name
child element attributes use @xmlelement,name as the element name
If there are attributes, such as
Xml:
Type wildcard character
Type wildcard characters are generally used instead of specific type arguments ( Here are type arguments, not type parameters ). When you do not need to use the type's specific functionality when manipulating types, you can
Operation Symbols:1), arithmetic operator.+-*/% : the remainder of any integer is not 0 or 1, so the switching operation can be achieved as long as the remainder is changed.+: Connector.++,--2), assignment operator.= += -= *= /= %=3), comparison
Learn to program the Java tutorial on programming it Tutorial collection framework released, welcome to visit via Xuebiancheng8.comThe collection framework in Java Name Incredibles is the framework for the collection. So what is a collection, which
Learn to program the Java Tutorial package released, you are welcome to visit through the xuebiancheng8.comThe following is an analysis of the encapsulation in object-oriented, and what is encapsulation. First, segment code.public class
Original http://go-learning.com/2012/05/22/java-gettingstart-0/
The intended audience of this course is a basic Java platform.ProgramMember. I don't have any Java programming experience, nor any programming experience. Of course, basic computer
From http://www.cnblogs.com/ggjucheng/archive/2012/12/16/2820839.html
English from http://docs.oracle.com/javase/tutorial/java/nutsandbolts/switch.html
UnlikeIf-then andIf-then-else statement, the switch statement can have multiple possible
From http://www.cnblogs.com/ggjucheng/archive/2012/12/16/2820841.html
English from http://docs.oracle.com/javase/tutorial/java/nutsandbolts/while.html
The while statement continuously executes the statement in the block when the specific
From http://www.cnblogs.com/ggjucheng/archive/2012/12/08/2809371.html
English from http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html
JavaProgramming LanguageIs a static type, which indicates that the variable must be
Break statement
The break statement has two forms: Label and non-label. In the previous switch statement, the break statement is not in the label format. You can use non-label break to end the for, while, do-while loop, as shown in the following
From http://www.cnblogs.com/ggjucheng/archive/2012/11/26/2789749.html
You can declare some methods of the class as final. Use the final keyword to declare the method, indicating that this method cannot be overwritten by the quilt class.The object
From http://www.cnblogs.com/ggjucheng/archive/2012/11/26/2789638.html
Polymorphism, defined in the dictionary, refers to the fact that organisms or species in biology can have many different forms or stages. This principle also applies to
From http://www.cnblogs.com/ggjucheng/archive/2012/11/25/2788247.html
Inheritance
In Java, classes can inherit from other classes and inherit the members and methods of the parent class.
Inheritance is simple but powerful: When you need to
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.