When looking at the source code of string in Jdk6 recently, I found that there was a construction method of string, which contains the following sources:
public string (string original) {
int size = Original.count;
char[] OriginalValue =
Overview
Log technology provides important support for the quality and service of the product. The JDK has added a logging mechanism after version 1.4 to facilitate Java developers. But this kind of logging mechanism is based on static log level,
We are in the Java GUI Development, button and mouse monitoring is undoubtedly the use of the most important, and how to skillfully use these listeners, for future development is a great help, the following will be introduced separately.
How to
Learn about the concepts of Java packages, variables, and how objects interact with each other through methods.
In two articles, Wombat object basics and Wombat basics, you learned the basics of objects, classes, methods, and language and grammar.
Introduction: This paper introduces the Java Rule Engine and its API (JSR-94) and related implementation in detail, describes its architecture and API application, and points out the relationship between Java Rules Engine, rule language, JSR-94, and
I once did a small swing in the beginning of the process, using the Java Se,swing,thread and other Dongdong, the original experience has not done a rigorous performance testing, cloth to the production environment after a period of time to find that
One benefit of the New AWT event model is flexibility. In the old model we were forced to write code hard for our program. But the new model we can invoke to add and delete event actions in a single method. The following example demonstrates this:
You can create your own read-only class, and here's a simple example:
: Immutable1.java
//Objects that cannot is modified
//are immune to aliasing.
public class Immutable1 {
private int data;
Public Immutable1 (int initval) {
data =
1. Summary of this week's studyThis week we learned some of the history of Java from birth to today, and learned about Java's compilation process in CMD through a teacher's classroom presentation. Then I learned about JDK,JRE,JVM.2. Written work1.
Transferred from: http://blog.csdn.net/lengyuhong/article/details/5953544Recently looked at the Java memory leakage of some cases, with the original several brothers discussed, in-depth research found that there are many in the JVM is still a lot of
Differences in construction methods and methods:The constructor method is to be the same as the class name, with no return type, called when the class is initialized.The method is best unlike the class name, where the object is called and the static
Java Finalize method Summary, GC execution finalize processCategory: Java2013-10-06 16:42 73 people read Comments (0) favorite reports FinalizejavajvmDirectory (?) [+]
Note: The purpose of this article is not to encourage the use of the
If you still have doubts about what a thread is, what is a process, please Google first, because these two concepts are not within the scope of this article.There is only one purpose of multithreading, which is to make better use of CPU resources,
(original article, reprint please add reprint address) Copyright notice: When reproduced, please indicate the original source of the article and the author's information and this statement in the form of a hyperlinkThe most important thing in image
Annotation (note) Introduction:Note the most impressive possibility is that JUnit does the unit test and uses it in various frameworks. This article mainly briefly introduces the use of annotations, the next article in-depth study.annotation does
We learned from the previous chapter that synchronized is a heavyweight lock, and although the JVM has done a lot of optimizations for it, the volatile described below is a lightweight synchronized. If a variable uses volatile, it is less expensive
How to display images in Java and how to display images in Java
Recently, I am working on a small swing project. I need to display the image files stored in the hard disk and summarize the following methods:
1.
Graphics g = getGraphics ();String
Struts2 series notes (4) --- Ation class access servlet, struts2 --- ation
Ation access servlet
There are three methods for the Ation class servlet:
(1) Access Servlet API in an indirect way --- use ActionContext object
(2) Implement the interface
Java knowledge sorting and java knowledge interview
1. What are the features of object-oriented
Inheritance, encapsulation, polymorphism, abstraction
2. What is the mechanism for implementing polymorphism in Java?
Inheritance and interfaces
3. Types
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