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 is an object-oriented programming language, not only absorbs the various advantages of the C + + language, but also rejects the difficult to understand C + + inheritance, pointers and other concepts, so the Java language has a powerful and easy
The first thing to tell you is that the 5 states on the web are misleading, and threads in Java actually have 6 states. The statement of 5 states is actually the state of the early process.
Status of the early process:
The so-called " process State"
Annotations
When you use @interface to customize annotations, the Java.lang.annotation.Annotation interface is automatically inherited and other details are automatically completed by the compiler. When you define annotations, you cannot inherit
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
Shiro's Unified certification authority
Shiro is Apache below a simple, easy-to-use Java Permissions framework, for the monomer application, Shiro completely can be very good, fast to meet the requirements of the rights, so generally in the project,
In our normal development work, more or less can be exposed to multi-threaded programming or some concurrency problems, with the operating system and system hardware upgrades, concurrent programming is more and more used in our development, we use
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.
A simple, dynamic array implementation
Adding 10w of capacity based on array implementations the average is 0.4 seconds to delete all the capacity this efficiency is considerable below to look at the code together
Package Com.array;import
Summary:
In Java, an object must be properly initialized before it can be used, as defined by the Java specification. When instantiating an object, the JVM first checks that the correlation type has been loaded and initialized, and if not, the JVM
The previous article introduced the JVM memory model of the relevant knowledge, in fact, there are some content can be more in-depth introduction, such as the dynamic insertion of the constant pool, direct memory, and so on later time to perfect the
Java is an object-oriented programming language (OOP), and everything is an object.
Several concepts:
1. References, references are used to manipulate objects, manipulation objects need to be referenced to complete, for example, the remote control
•
JDK1.5
you can then use
enum
keyword to define an enumeration type with the following syntax structure:
[public] enum Enumeration Name [implements interface list ] {
Enumerating Objects 1 [, Enumeration Object 2] [,... ];
[ member variable 1; ]
[
Learn to program the Java Tutorial common method overload published, Welcome to visit through the xuebiancheng8.comFirst look at what is a common method overload, first look at an examplepublic class person{String username;int age;public void Hello (
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.
One: The core components of the Java NiO?Java NIO consists of the following core components:==>channels==>buffers==>selectorsAlthough there are many classes and components in Java NIO, in my opinion, Channel,buffer and Selector form the core API.
Hide Variables
In a class, if the name of a variable is the same as that of the parent class, even if their types are different, in the subclass, variables with the same name of the parent class cannot be accessed directly through the variable
From http://www.cnblogs.com/ggjucheng/archive/2012/11/28/2793257.html
Preface
In an instance method or constructor, This references the object pointing to the current object-method call or constructor call. You can use this to reference any
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.