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
# # #面向对象 (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
# # #面向对象 (Package 2) # # #
Inner classes in 1.Java
1) What is an inner class: The Inner Class (Inner Class) is the class that is defined in another class. Corresponding to this, the class containing the inner class is called the outer class.
2)
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 {
As Java's third major feature-polymorphic, we must be familiar with, but for this abstract concept is always a bit vague, think in Java has done a lot of explanations in this chapter, specifically explained the three questions.
1. What is the
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
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.
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
1 Set and storage order
Setthe added element must define equals() a method to ensure the uniqueness of the object.
hashCode()Only this class is required when it is placed HashSet or LinkedHashSet in. But for a good programming style, you
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
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 Access control published. You are welcome to visit through Xuebiancheng8.com.There are four types of access control in Java when using encapsulation.Public can access any method and property in any class of any
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
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/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/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