Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
1. Loading of ClassesLoad: search for and load binary data of the class. Put. the binary data of the class file is read into the memory, stored in the Method Area of the runtime data area, and a
Recently, performance tuning is being implemented in the project. Our game front-end is developed using Flex. dynamic loading is used for image loading, and the flex image component is used directly, reference the relative path of an image. No
Java is a swordsman-Elegant;. Net is a hacker-Overlord (1) [recommended]
The sword, a good sword, weighs three or three points, light as the wings of the reelection, the millennium cold ice cast, the sword body Brown, the sword handle black,
The-CP parameter can be used when the Java command introduces the jar, but the-CP cannot use wildcards (when there are multiple jar files, it is necessary to write them one by one, not *. jar). Generally, the jar files are in the same directory and
Map : The ing between key-value pairs. The key is unique.
| Hashtable: The underlying layer is the data structure of the hash table,The null key cannot be saved. synchronized (1.0)
| -- Treemap: The underlying layer is a binary tree and
UselessCodeDetect the Eclipse plug-in ucdetectorThis is an Eclipse plug-in used to detect useless code in Java. Http://www.ucdetector.org/
Findbugs
Findbugs is a static analysis tool.
Source codeThe bug may occur in the Eclipse plug-in tool.
Java. Lang. String split () method
The test is as follows:String A = "Hello ,,,";String [] Reverse r = A. Split (",");System. Out. println ("comment R. Length =" + comment R. Length );
Output result: Required R. Length = 1. This array has
Linear tables, linked lists, and hash tables are common data structures. During Java Development, JDK provides a series of corresponding classes for us to implement basic data structures. These classes are in the Java. util package. This article
1. Static methods and static variables belong to a class instead of class objects.2. Reference of static methods and static variables is directly referenced by class names.3. You cannot call non-static methods or reference non-static member
Problem description:
Java
ProgramThe Chinese display in the swing/AWT component in is a box, while the title can display Chinese normally, and the system. Out. println ("Chinese string") can be used to display Chinese normally;
Solution:
It may
Turn to a package naming Rule During J2EE development to develop good development habits
CodeStandardized purpose: to standardize the coding process for futureProgramDevelop good behavior habits during development.Standardized coding scope: J2EE
The common point of thread synchronization is two points:1. When a thread processes data, it can notify other threads that they have finished their jobs, and other threads can use the data it processes to do other things. (Object. Policy, object.
1. Appearance of NiO
NIO is something that occurs only in jdk1.4. The biggest benefit it brings to everyone is asynchronous socket. For other files, pipe won't talk much about it for the moment.
Before jdk1.4 appears, if you need to write a Java
Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
Import Java. util. arraylist; public class autoboxing {public static void main (string [] ARGs) {// manually packed to solve the problem that the container class cannot place basic data types
Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
This topic is derived from a problematic code. The original code is as follows:
Import java. util .*;Class treesettest{Public static void main (string [] ARGs){Hashset HS = new hashset ();Student
When calling a method, you need to input appropriate parameters according to the method declaration. Passing parameters each time you call the method greatly enhances the uniformity of the method and avoids repeated functional code within the method.
Use Java Excel API to modify an Excel file.
Package modifyexcel;Import java. Io. file;Import java. Io. ioexception;
Import jxl .*;Import jxl. Read. Biff. biffexception;Import jxl. Write .*;
Public class modifyexcel {
Public static void main (string [
*** Overview
Generics implement the concept of parameterized types so that Code can be applied to multiple types. The initial purpose of generics is to make classes or methods have the widest expression capability, which can be achieved by
The buttons and tools of the same type are combined to form a logical unit, which is tasks. Like tools, tasks is also a common Java class.
Writing a task can be divided into the following steps:
1. Compile the task class, including the command or
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