First, unusual precautionsSimply sort out the following specification for exceptions:1) in the exception handling module should provide accurate, easy-to-read error cause information.2) do not handle exceptions that can be avoided.3) A method should
The Java.lang.reflect package provides an interface and class to implement the proxy mechanism:
InvocationhandlerInvocationHandlerIs the interface that is implemented by the calling handler for the proxy instance.
Extends Object
El TechnologyEl (express lanuage) expression can be embedded inside the JSP page, reduce the writing of JSP script, El appears to replace the JSP page script writing.El's main function is to extract data from the field, format ${el expression}
We introduced the tree data structure, the tree is composed of N (n>0) a finite node by connecting their edges to form a hierarchical relationship of the set, call it "tree" because it looks like an upside down tree, including two fork tree, red
Atomic classJava provides the Java.util.concurrent.atomic package (hereinafter referred to as the atomic package) from JDK 1.5, in this packageAtomic manipulation classes provide a simple, efficient, and thread-safe way to update a variable.Since
Preface Before the function is introduced, all the code is written in main function, too much code, code redundancy, and poor readability. After the introduces a function, a function is a block of code that implements a particular function.
Queue interface
Queue is used to simulate the data structure of a queue, which usually refers to a "FIFO" container. The head of the queue is held in the queue for the longest time element, and the tail of the queue is saved in the shortest
Collection is the common interface for list, Set, and queue. The main methods of collection are:int size (): Returns the number of elements in the current collectionBoolean Add (E E): Add object to collectionBoolean remove (Object o): Deletes the
How Java reads a configuration file-notes1??????? Take the configuration file under the current Startup folder?In general, when you start a Java program. There will be a configuration file under the folder that startsClassloader.getresource ("").
Java provides the API class BigDecimal in the Java.math package to perform precise operations on the number of more than 16 significant bits. Double-precision floating-point variable double can handle 16-bit valid numbers, but in practical
First, filter1. What is a filter?
A filter is a program that runs on the server prior to the servlet or JSP page associated with it. Filters can be attached to one or more servlet or JSP pages, and can be checked for request information
1. Download mavenOfficial address: http://maven.apache.org/download.cgiUnzip and create a new local warehouse folder2. Configure the local warehouse path3. Configure MAVEN Environment variables4. Configuring Maven in IntelliJ IdeaOpen-file-settings5.
Write a CSV file, found that using notpad++ Open is no problem, but the use of Excel opened after the display garbledThe first code is this:Bytearrayoutputstream OS = new Bytearrayoutputstream ();PrintWriter printwriter = new PrintWriter
Java2d supports drawing arbitrary geometries through the GeneralPath implementation.Step: 1) Instantiate the GeneralPath object2) Call MoveTo () method anchorage start point coordinates3) Call the LineTo () or Curveto () method to draw the connector4
List interface, Set interface, Map interface, list interface setmap1. The List and Set interfaces inherit from the Collection interface, while Map is not the inherited Collection interface.
Map does not inherit the Collection interface. Map
Android enumeration advantages and disadvantages and alternative solutions
Enumeration should not be used on Android, which occupies memory. Replace it with the @ XXXDef annotation.Disadvantages of using Enum
Each enumerated value is an object,
Spring + netty Server SETUP method, springnetty
Games are generally persistent connections, custom protocols, and http protocols are not required, BIO, NIO, or AIO.
I now use spring + netty to build a simple game server
Ideas: 1. custom protocol and
Java callback function and observer mode instance code, callback function observer
This article focuses on the implementation of Java callback functions and observer mode. The specific introduction and implementation code are as follows.
Observer
Java Swing component custom RadioButton example, swingradiobutton
This example describes how to customize the Java Swing component RadioButton. We will share this with you for your reference. The details are as follows:
Let's take a look:
The Code
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