Abnormal
1. Java exceptions are a mechanism provided by Java to handle some of the exception events that occur during the running of a program, such as an array subscript out of bounds, a file not being read, and so on.
2, the classification of
The Java API docs provided by Sun is one of the most commonly used references in learning and using the Java language. But for a long time this document is in English only, which is quite inconvenient for Java developers in the Chinese region. At
We all know that when you want to save a set of basic types of data, arrays are the most efficient way to save and are recommended in this way. But the array is inherently sized, and when the program is known to be sized at runtime, it is
http://community.csdn.net/Expert/topic/5732/5732870.xml?temp=6.341189E-02
My book says the Equals method in object is used to detect whether an object is equal to another object, and the method of detection is to determine whether two objects have
1. In the class, the member variable declared with static is a static member variable, which is a public variable of that class, initialized at the first time, and only one for all objects of the class.
2. A method declared with static is a static
Date Processing
1. Format of date (SimpleDateFormat);
A, generate a SimpleDateFormat class object, and specify the format format. For example:
SimpleDateFormat SDF = new Simpledateformate ("yyyy mm month DD day");
B. Call the SimpleDateFormat class
When you learn threads in Java, you naturally associate the knowledge of the processor in the operating system that you learned earlier. DefinitionAt the beginning of the article, let's talk about the concepts of programs, processes, and threads,
Java is the embodiment of a simple programming style, serialization as one of the most common functions, in Java design is particularly "simple." With the help of ObjectInputStream and ObjectOutputStream, we can achieve serialization easily.
As
First, define a simple "generic" class
package tigers; public class GenericIdentify { public static void main(String[] args) { Generic1 gStr = new Generic1(); gStr.set("aaaaaaaaaaaaaaaaa"); Generic1 gInt = new Generic1(); gInt.set(new Integer(132142
We often use configuration files to configure engineering properties, so how do we use our property files?
Suppose you have a property configuration file jdbc.properties that connects the database.
The contents of the document are as follows:
This is my work with colleagues in the summary of string processing, published, I hope that some help to you, but also hope that we will give corrections, thank you! ~
Import java.util.*;
/** *
File title:
* Some ways to handle strings:
* @
A string class that contains the value of a string and some methods for implementing string-related operations.
In fact, the string in the Java implementation is very special, you can not use the construction method, you can directly get a string
When a parent class implements the serializable interface, its subclasses are automatically serialized.
This is verified by the following:
Package serial;
Import java.io.Serializable;
public class Superc implements Serializable {//parent class
What is to be saved is also preserved. In general, we just need to save the logical data. Data that you do not need to save can be marked with the keyword transient.
Here is an example:
Import java.io.*;
public class serial implements
Regular expressions
1, the regular expression is straightforward to deal with the string of sharp objects (for string matching).
2, about regular expressions in Java mainly used in the Java.lang.string,java.util.regex.pattern and
J2se:java 2 Standard Edition is the Java Standard Edition, SE is the standard version platformJ2ee:java 2 Enterprise Edition is a Java Enterprise Edition that includes additional libraries in addition to any components in the Standard Edition (SE).J2
The container class can greatly improve programming efficiency and programming capabilities, and in Java2, all containers are redesigned by Sun's Joshua Bloch to enrich the functionality of the Container class library.
The purpose of the Java2
Container
1. Container: An instance of a series of classes provided by the Java API for storing objects in a program. (The object is stored, not the underlying data type: Because the data on the stack can be emptied at any time)
2. The collection
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.