JDK1.5 introduces a new type--enumeration. In Java, although it is a "small" function, but to my development has brought "big" convenience.Usage One: constant.Before JDK1.5, we defined constants: public static fianl ..... Now, with enumerations, you
Java sorting algorithm (vi): Direct Insert Sort The basic operation of a direct insert sort is to insert the data element to be inserted into the preceding ordered sequence by the size of its keywordDirect Insert sort time is not efficient, if in
Using http://start.spring.io/to download the Project Run Unit Test report java.lang.ClassNotFoundException: Kotlin.reflect.KotlinReflectionInternalErrorReason isJackson-module-kotlin version references kotlin-reflect too low by defaultThere is no
File operation--filefile represents directory information
Listfiles method
The Listfiles method of file returns an abstract path to the an array group that represents the file in the directory represented by this abstract path name. Its method
One, type encapsulation deviceFor performance reasons, Java does not discard basic data types, which can be an unacceptable overhead if they are always used in the form of objects. Although the basic types provide the benefits of performance, they
How to create a Help document (API) for JavaThe steps are as follows :(1) Write a tool class(2) Add a document comment to this class(3) Parsing document annotations with toolsJavadoc Tools(4) formatjavadoc-d Directory-author-version
one, the thread lockThread safety issuesIn fact, thread safety problems are caused by global variables and static variables . In general, this global variable is thread-safe if there are only read operations on the global variable and static
Today, when discussing with classmates, he said that Java does not have pointers on how to implement linked lists. Indeed, there are no pointers in Java. However, references in Java are very different from references in C + + and have a certain
JavaIn2Methods of handling exceptions:1and direct treatment in the place where the abnormal is made;2, throw an exception to the caller, and let the tune-up handle.Exception classification1, Check for exceptions:Java.lang.Exception2, Operation
Remember when the university began to learn C language, the teacher said: Since the increase there are two forms, respectively, i++ and ++i,i++ is the first assignment after the addition of 1,++i is the first add 1 after the assignment, so that the
Today, after the object is automatically converted to an integer type of judgment, encountered an incomprehensible point, when the value of more than 127, two of the same value of object object with = = To determine the result is false.1Object A = 12
Objective:Just came back early today and summed up the basics of Tomcat and HTTP.1, TomcatWeb-related conceptsWeb: The meaning of a Web page resource includes all resources on the server.Web Resource classification:Static resources: Resources that
Custom exception,
// A custom exception must inherit a parent class indicating the exception, because the exception class and the exception object are thrown,// Only the Throwable system exists. Therefore, only classes and objects in this system
_ Example of use under NIO and NIO _ example of use
1. dispersion and aggregation
1. Scattering Reads:Channel in progressData is distributed to multipleBuffer ZoneMedium
2. Aggregate write (Gathering Writes): MultipleBuffer ZoneData
Java: introspector and introspector
Attribute Concept
It is not just a field, but its get set method.
This get method has a returned value called an attribute that inherits the getClass method of the Object class.
Package com. swift. demo1; public
Hibernate framework Study Notes 6: transactions, hibernate Study Notes
MySQL transactions and JDBC transaction operations:
For details, see this article: More detailed
Http://www.cnblogs.com/xuyiqing/p/8430214.html
How to configure the isolation
JVM class loading mechanism ---- 2. jvm Loading Mechanism
The first phase of the class loading mechanism is:
1. Use a fully qualified Class name (package name and Class Name) to obtain the binary byte stream (Class file) that defines this Class ).
Java implements abc string arrangement and combination, and javaabc arrangement and combination
1. Repeatable arrangement: a total of 27 types of string consisting of three characters including abc, aaa, aab, aac... ccc
Using recursive thinking, you
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