Http://www.java2s.com/java2s/
This website is very good and divided into three categories: example, products,
ArticlesIn each category, there are multiple sub-classes and search functions, which makes it very convenient to search .. For example,
RMI and corbr are two distributed network programming methods.
1. Rmi is easy to use. It only supports Java, and service expansion is okay.
2. corbr is complex and supports multiple platforms and languages, but the service expansion is
15-08Use generics in custom classes, that is, generic classes. Class worker {
} Class student {
} Class tool { Private object OBJ; Public void setobject (Object OBJ ){ This. OBJ = OBJ; } Public worker GetObject (){ Return OBJ; } } // When
Whether the program is localized or internationalized, character encoding conversion is involved. Especially in Web applications, you often need to process Chinese characters. In this case, you need to encode and convert the string to GBK or gb2312.
Java data structure content ArrangementKeywords: Data Structure collection: List, SetMap: hashmap, hashtable
How to select between them
I. array, Arrays
Array is the most efficient method for Java's "Storage and random access to a series of objects.
The function of generics is to limit the parameter type and make the code more rigorous. In future use, there will be no errors in parameter calls.
Let's look at the implementation of Java internal class generics.
1 // IntelliJ API Decompiler stub
The factory is probably the simplest design pattern. It should be appropriate if you use it. Let's first look at its pattern diagram:
Simply put, the factory model separates "Products" from "product production" and abstracts "products. This forms
It has been in. net is engaged in development work, and now learning Java Development, everything is new, it took a week, forced themselves to forget the previous irrelevant. net. In any case, forget it. I don't care much about this.
Introduction:
Apache Java Project Overview
MostClose contact with Jakarta-common-beanutils is a lot of things, so Apache JakartaProject has become an interest. On their official website, I saw a lot of useful things, dazzled, and no Chinese websites. I searched
The requirements are as follows:There were N children playing the game in a circle. From the first child, the first child reported that 3 children left the game,The remaining children continue to report data from the beginning, and the last person
Two required packages and:
(1) iText. jar: http://download.csdn.net/source/296416
(2) iTextAsian. jar (used for Chinese conversion): http://download.csdn.net/source/172399
The following is a sample code:
Import java. awt. Color;Import java. io.
BLOB stores data in binary format. For example, save a bitmap. CLOB uses CHAR to save data. For example, save the XML document.
1. Create a Clob objectThe following code snippet illustrates how to create a Clob object, where rs is a ResultSet
The constant pool is used in java to save a copy of data in the compiled class file that has been determined during the compilation period. It includes constants in classes, methods, and interfaces, as well as String constants, such as StringS =
The linear storage structure of the array is disordered and ordered. The search, insert, and delete algorithms must consider whether there are repeated elements in the array. In Java, arrays in Basic Java are used as objects, so new is used to
JDK 5.0 has long been expected, but it was changed to version when it was released. This shows that Java has changed significantly. This article describes the new features supported by JDK-Java generics.
1. Java generic
In fact, Java generic is to
The so-called callback means that the client program C calls A function A in service program S, and then S calls A function B in C at A certain time. For C, this B is called a callback function. For example, the window procedure function under Win32
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