The previous article summarizes the first part of the Java language Development public platform--
environment construction and development access,This article summarizes
the receipt and response of the message.
When accessing the public platform,
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
# # #基础语法 (2) # # #
1. Assignment operators
Basic assignment Operator: =
Extended assignment Operator: +=,-=,*=,/=,%=
(Add/Subtract the value to the left of the equals sign and to the right of the equals sign ...). The result of the assignment
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 {
Many beginners may not understand the use of static methods, here I say my understanding:
The call to the static method does not depend on the creation class object
The This keyword is not used in the static method because no objects need
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
Abstract is one of the most important features of object-oriented programming. In Java, there are two ways to embody the abstraction of OOP: interfaces and abstract classes. There are too many similarities, and there are too many different places.
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:
Today, when looking at the Hadoop source code, think about the system that you have been doing recently, found that many of the methods of exception handling is not correct, or according to the traditional exception handling (that is, using the
The class or interface is initialized when a Java program uses a class or interface for the first time in the following 6 ways.
(1) Create an instance of the class. The way you create instances for a class includes creating an instance with the
Learn to program the Java tutorial Object-oriented (iv) published, Welcome to visit through the xuebiancheng8.comThis session is to analyze the Java object-oriented construction method. What is the construction method, the construction method is
Learn to Program Java learning Object-oriented (ii) published, please visit by xuebiancheng8.comThe concepts of classes and objects, properties, and methods in object-oriented objects have been analyzed earlier. Let's learn how to define a class.
EnumerationThe enumeration is simply to enumerate the required constant values one by one and encapsulate them as a whole.Syntax format:[public] enum enum name {//value list}Declaration format: enumeration name variable name;Assignment format:
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
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/12/04/2802120.html
English from http://docs.oracle.com/javase/tutorial/java/IandI/interfaceDef.html
An interface declaration consists of a modifier, a keyword interface, an interface name, a
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/12/17/2821925.html
English from http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html Array
An array is an object container that holds a fixed number of values of the same type.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service