Package com.github.jdk;/** * Java How to extract the file name and line number in the source files * {@code stacktraceelement} is defined in the documentation * * @author doctor * * @time March 2015 13th morning 9:16:16 */public class
One. Thread state type1. New state: A new Thread object was created.2. Ready state (Runnable): After the thread object is created, other threads call the object's start () method. The state of the thread is located in a pool of running threads that
Recently in the project using a multi-threading technology, feel the data a lot of batch processing effect is good, so record down here, give yourself a day, also share to everyone!1. First to get your data set DataList (shown here in DataList)1.1
Project background:Recently developed projects, you need to do in the background a URL path as a parameter passed in, the background to generate a picture. Frankly speaking, is actually running a browser in the background. Run silently on the server.
Transformation is based on inheritance, which is a mechanism of code reuse in object-oriented languages, through inheritance, subclasses can reuse the function of the parent class, and if the parent class does not meet the requirements of the
Seven-picture interpretation of Java multithreading--by:coder-pig, reprint please specify the source ~Introduction to this section:Title, the author of Java multithreading some conceptual things and some basic things are summed up in these seven
Java Version History
May 23, 1995, the Java language was born
January 1996, the first JDK1.0 was born
In April 1996, 10 of the most important operating system vendors affirmed that Java technology would be embedded in their products
In
Static code block
Format:Static{Execution statements in a static code block}
Characteristics:Executes as the class loads, executes only once, initializes the class, and takes precedence over the main function executionConsider the
Question 1. Efficiency Issues: If you do not need to use the Singleton class object, how to ensure that the Singleton class object will not be created;Question 2. Thread Safety : How to guarantee that the acquired object is a singleton.1. The
ImportJava.util.concurrent.ArrayBlockingQueue;ImportJava.util.concurrent.BlockingQueue;ImportJava.util.concurrent.ExecutorService;Importjava.util.concurrent.Executors;/**This example introduces a special queue: Blockingqueue, if Blockqueue is empty,
when collecting receipts using the JMeter PerfMon Metrics collector plugin, data is not collected to report the following error:ERROR:java.io.IOException:Agent is unreachable via TCPOrERROR:java.io.IOException:Agent is unreachable via UDPThis is
Java Virtual Runtime data areaThe runtime data area mainly includes: Method area, heap, virtual machine stack, local method stack, program counter.Where the method area and the stack are thread-shared areas, the other three blocks are private areas
The main structure of the Java bytecode file is divided into several parts:the class file header, the Chang area, the current class description information, the field list, the method list, and the attribute list .class file HeaderThe contents of
First, adapter design modeIn simple terms, it is an indirect class that selectively overwrite an interface.Interface window{public void Open ()//open window public void close ()//Close window public void icon ();//Minimize public void Unicon ();//
Package com.czj;public class Person {String str= "string";Public person () {System.out.println ("Person empty constructor");}Public person (String str) {System.out.println ("Person with string creation function");}}Package com.czj;Import
Hibernate (14) cache and hibernate Cache1. What is cache?
The cache is between an application and a permanent mandatory data storage source. The purpose is to reduce the frequency of direct read/write of permanent mandatory data storage sources by
10 object-oriented design principles that Java programmers should know
(Design Principles) the bottom line is always the pursuit of high cohesion, low coupling coding or design. The open source code of Apache and Sun is a good example of learning
Use Spring to simplify JDBC operations on the database, springjdbc
Spring was originally designed to reduce the complexity of enterprise-level development, and its support for database access also exists. Using Spring to access the database can
Hibernate (10) HQL query 2, hibernatehql QueryI. Database emp name and dept table
Create persistence classes and configuration files, which can be directly generated using MyEclipse
Persistence classPackage entity; import java. util. date; public
Hibernate (11) Search and hibernate searchI. Hibernate search policy
Ii. search methods
3. get and load comparison
Difference between get and load:
Get does not support delayed loading, but load does.
When querying data that does not exist in a
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