Recent research jetty source code, found that the code inside the container can not understand, are all Java syntax, is basically reflective + design mode + configuration file. Very inexplicable wonderful method of calling. There is a call to the
A lot of times we get an interface, do not want the default border, or do not want the top right corner of the maximum button, such as the QQ panel does not have the maximum button.
But I checked a lot of information that can not directly remove the
reason : Wrong format:
1:java:comp/env
2:java:/comp/env-------------more than a "/", but the internet has this kind of writing, is not wrong.
Not carefully studied. Check it out later.
Java Reflection Mechanism Basics:
Reference: http://lavasoft.blog.51cto.com/62575/43218/http://java.ccidnet.com/art/3539/20070924/1222147_1.html
Call to JAVA Invoke:
Like the next class
public class classa{
private int Method1 (string[] strs) {
Java connection all kinds of database way quick look-up table
1, oracle8/8i/9i database (thin mode)
Class.forName ("Oracle.jdbc.driver.OracleDriver"). newinstance ();String url= "Jdbc:oracle:thin: @localhost: 1521:ORCL"; ORCL is the SID of the
In general Java projects and now particularly hot data analysis projects, the use of database and database resource pool connection is a commonplace. Today it's a simple way to sort through the process:
We look at the code in order of
Java uses the Jpcap grab tool to obtain all TCP requests sent by this machine, and can debug the relevant HTTP request or SQL connection request sent by an application after startup according to the content of the TCP request, so that we can debug
Reference types and basic types of classification, not written, online there are a lot.
We know:When two basic types use "= =" comparisons, they compare values .When two reference types use "= =" comparisons, they compare the addresses .When two
1. Variables may not be initializedError tip: abc.java:9: Variable I might not have been initializedSystem.out.println (i);The variable I may be used without assigning a value.Example Description:int i;System.out.println (i);2. Duplicate definition
Between Java and C + + there is a "high wall" of dynamic memory allocation and garbage collection technology, and people outside the walls want to go in, but the walls are coming out.
Reference > Zhou Zhiming
Reference LinksXms xmx permsize
The Equals method and the Hashcode method in Java are in object, so each object has these two methods, sometimes we need to implement the specific requirements, we may have to rewrite the two methods, today we will introduce some of the effects of
Summarize the relevant knowledge in the network and book, introduce how to avoid memory leak, overflow first introduce what is memory leak, overflow (refer to my collection):
1, Memory leakage memory leak: The object can reach but is not used; is
DOM4J is an open source XML framework for parsing XML documents. This article describes how to use the parser contained in DOM4J to create and modify an XML document.
The dom4j API contains a tool to parse XML documents. This article will use this
Description
The 1.PreparedStatement interface inherits statement, and its instance contains compiled SQL statements that execute faster than statement.
2.PreparedStatement inherits all the features of statement, three methods Executeupdate,
Brief introduction
Copyonwritearraylist is a non-blocking, thread-safe list implementation provided in the JDK concurrent package. Copyonwritearraylist is a thread-safe, and ArrayList that is unlocked during read operations. Copyonwritearraylist
First, introduce
1, the generic is what first tell everyone arraylist is generic type. That ArrayList can accomplish what unexpected function. Let's take a look at the following code:
[Java]View plain copy arraylist strlist = new arraylist ();
This article refer to for reference: http://guazi.iteye.com/blog/107164
Premise: Based on the memcached client for Java based on the two-time package, the implementation of two types of cache storage mode: Universal distributed cache and cluster
These days I am reviewing the basics of Java language, although with the team, the individual has carried out the actual project development, but the more go to the above feel that they should take a moment to look at the basic knowledge of Java,
Java packaged into Jars
JAR-CVF [Name of jar package] [file to be packaged]
Execute the Main method in the JAR package
Java-jar ****.jar
Always runs the specified main method after execution, and if there are multiple main methods in the jar,
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