Document directory
Reprinted from: http://www.oschina.net/code/snippet_8676_2652
In writing Java programs, the conversion between arrays and List objects is often used.
[Code]Array-> List (stringarraytest. Java) View Source
Print?
Modifiers in JavaStaticStatic. It can modify attributes, methods, and code blocks.1. Static ModificationAttribute (class variable)This attribute can be accessed by class name. attribute name, that is, to make this attribute a class variable of this
ReflectionReflection, dynamic analysis at runtime or using a class for work.Class Object,Is an object that describes the class information. When a VM loads a class, it creates a class object for the class and loads the object. Class is the type of
New Features of java5.0Automatic packing and automatic unpackingAutomatic packing and automatic unpacking enable automatic conversion when simple types and encapsulation types are converted to each other.The automatic binning solution is only
Multi-core, hyper-threading
CPU
Achievements of the Times
Java
Performance kingTraditionally, the main way to improve CPU performance is to increase the CPU clock speed. However, after more than 30 years of development, the CPU clock speed is close
I used to implement a simple multi-threaded mechanism. Before I started, I would like to talk about the principles. Here is what I found on IBM developers.
Technical Background of Thread Pool
In object-oriented programming, it takes a lot of time to
Compared with Microsoft's msdn, ArcGIS Engine and server development documentation are inferior. The former often requires the help of AO for Vb, while the latter has many blank topics. Developers complain constantly about ESRI development
It's almost becoming Weibo. Record the following two problems:
1. org. Apache. axis. Client. Service:
Compile a project and call Org. apache. axis. client. service = new Org. apache. axis. client. service (); when there are no key packages to be
Because you need to monitor whether a javacore file is generated in a directory on the server and do not want to run the proxy program on the server, you also think of a "bad idea": regular use of the FTP service, view the files in this
The Singleton mode ensures that only one instance of a class exists in a Java application.
Benefits:
Compared with global variables, it optimizes the system performance better, because it is used and instantiated.
Generally, Singleton mode has two
Java has three major features: encapsulation, inheritance, and polymorphism.
Encapsulation:First, attributes can be used to describe the features of a class of things. methods can describe the operations that a class of things can perform.
Because it is an existing method in the object, and all classes inherit the object, "all objects have this method ".
It is usually only for convenience of output, such as system. Out. println (XX). If the "XX" in the brackets is not of the
Package com. super119;
Public class breakcontinuelabel {
Public static void main (string [] ARGs ){Bfinish :{For (INT I = 0; I System. Out. println (I );If (I = 5) Break bfinish;}}System. Out. println ("break label finished .");/** This is wrong:*
Package com. super119;
Public class negativeshift {
Public static void main (string [] ARGs ){Byte B =-8;/** Be caution:* 1. byte will be auto promoted to int while shifting* 2. Left shift has not sign-extended* Right shift has sign-extended but it
URL (Uniform Resource loactor abbreviation of Uniform Resource Locator) through the constructor can get URL object url = new URL ("http://www.cnblogs.com ");
Basic URL Method
Getportocal (): Get the transfer protocol
Gethost (): Get the Host
The first method is to implement the comparable interface for objects in the list, as follows:
/**
* Sort users by order
*/
Public class user implements comparable {
Private string name;
Private integer order;
Public String getname (){
Return name;
Today, I learned some Java reflection mechanisms and made a simple record.
In my understanding, some object-related information is obtained during running:
The "class" type of the object, which member variables, which methods, value of member
First, we need to know which SVN commands are commonly used:
SVN Co pull code to local
SVN Add add new files/directories to SVN
SVN Delete: delete files/directories from SVN
SVN up to update code to local
Svn ci local code submission
Detailed
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