What is the Java memory model? Http://baike.baidu.com/view/8657411.htm
By accessing the above URL, we understand the concept of the Java memory model.
To put it simply, each thread will copy a copy of the variable from the main memory and save it
ArticleDirectory
Overview
Principles of the garbage collection mechanism
Finalize () method
Overview
As we all know, C ++ needs to manually release the memory. Java's garbage collection mechanism avoids this. There is something in JVM
The information on the internet is really bad. It is useless to copy the same data and despise it!
Question:
Download the mysql-connector-java-5.0.4.zip file to the mysqlwebsite and decompress it;There is a file after decompression: mysql-connector-
Code reuse (code reuse mechanism)Java issues are solved around classes. You can create new classes to reuse code (use existing classes to form new classes). There are two ways to achieve this:(1) generate existing class objects in the new class.
Java comes with a good hiding mechanism: only give a class "package access" (only visible in the same package), instead of creating a class as an internal class.
When the internal class is transformed to its base class, especially to an interface,
Java. Lang. outofmemoryerror: GC overhead limit exceeded
Cause:The following are common examples:
1. The amount of data loaded in the memory is too large, such as extracting too much data from the database at a time;
2. There are references to
I. Po:
Persistant Object Persistence object can be viewed as a Java object mapped to a table in the database. The simplest Po is to correspond to a record in a table in the database. A set of PO can be used for multiple records. The PO should not
Java Excel API Overview
Java Excel is an open source project. Java developers can read the content of an Excel file, create a new Excel file, and update an existing Excel file. Using this API, non-Windows operating systems can also use Java-only
Java decoding has been used in a recent project, mainly using the Mina framework. Now we will summarize the problems we have encountered for future reference:The terminal is coded in C, transmitted through can, and finally transferred to TCP for
1. understanding of basic conceptsAbsolute path: the absolute path is the real path of the file or directory on your home page on the hard disk (URL and physical path), for example:C:/XYZ/test.txt represents the absolute path of the test.txt file.
2.2
TCP socket
2.2.1 tcp client
Tcp client procedure
1. Create a socket instance: the constructor establishes a TCP connection to the specified remote host and port.2. Communication through the socket input/output stream (I/O streams): A
2.3 UDP socket
UDP provides an end-to-end service different from the TCP protocol. In fact, UDP only implements two functions: 1 ),Add another layer of IP address (port) 2 based on the IP protocol, detect possible errors during data transmission,
4.1.4 Thread Pool
Every new thread consumes system resources: creating a thread will occupy the CPU cycle, and each thread's own data structure (such as stack) will also consume system memory. In addition, when a thread is blocked, JVM will save its
For web development, you sometimes need to access local files (for example, the configuration file placed under Web-Info). However, this is a simple task, because of the different loading mechanisms of Tomcat and WebLogic, the platform cannot be
WebService Development Summary
Environment: the server is asmx of. net, and the client is Java axis1.4
Method 1: Call. Invoke is used to directly call WSDL. Disadvantages: troublesome, not recommended ...... Especially when Java calls. Net's WS,
To read files, you need to use the concept of stream (Java. io. *); first, it can be divided into byte reading and character reading. It is easier to choose which method to use based on different files to read (but byte reading is omnipotent, that
I. Abstract class
Sometimes, we may want to construct a very abstract parent class object. It may only represent a classification or abstract concept, and its instance has no meaning, so we do not want it to be instantiated. For example, there is a
Transferred from "http://blog.csdn.net/longronglin/archive/2008/04/24/2325214.aspx"
The following is a simple version, which can be modified in detail. For example, the file suffix ......The following code has been tested:
Import java. Io.
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