I. Build test environment and project
1.1. Build Javaweb Test Project
Create a "h2dbtest" Javaweb project and locate the jar file for the H2 database, as shown in the following illustration:
The H2 database is a jar file that contains the
Constructing inner class objects by reflectionFirst, write a class containing the inner class under the Javalang package:
Package Javalang;
public class Outer {public
static class inner1{}
}
Note that this class is public static,
Picture uploads and file uploads are essentially the same, and the picture itself is a file. File upload is the picture uploaded to the server, although there are many ways, but the bottom of the implementation of the file is read and write
Concept
enum, called enumeration, is the new feature introduced in JDK 1.5.
In Java, enum types that are decorated by keywords are enumerated types. The form is as follows:
Enum Color {RED, GREEN, BLUE}
If the enumeration does not
What is annotation (Annotation):
Annotation (annotation) is Java provides a way and method of associating any information with any metadata (metadata) in the elements of a program. Annotion (annotation) is an interface in which a program can
1, MD5 encryption, the encryption algorithm is one-way encryption, that is, the encrypted data can no longer be restored by decryption. The related classes are included in the Java.security.MessageDigest package.
2, 3-des encryption, the encryption
The linked list is a kind of complex data structure, and the relationship between the data makes the list divided into three kinds: single linked list, circular chain list, bidirectional linked list , and the following will be introduced. Linked
Syntax description
A lambda expression consists of the following parts:
1. A comma-delimited list of formal parameters in parentheses. The Checkperson.test method contains an argument p that represents an instance of the person class. Note: The
First of all, this filter interception is actually not reliable, for example, my article is the introduction of SQL injection, or the content of the comment is about SQL, it will be filtered out, and if each page through the filter, then the
Chapter three basic program design structure of Java
Java is case sensitive
Name specification for camel nomenclature, cannot use reserved word
The main method must be declared public
If the main method exits normally, the Java application'
As described earlier, you can use type parameters when defining classes and interfaces, which can be used as normal types in the method definitions and Field definitions of the class and in the method definitions of the interfaces. In other cases,
First, the preparatory workThere are three main browsers we use: Chrome, Firefox, ie, chrome and IE need to download drivers to start the browser, note that the driver has 32-bit and 64-bit two.In addition: How to view the browser version of the
Before the Java language comes out, everyone is desperately writing C or C + + programs, and there is a great contradiction, C + + and other languages to create objects to continue to open up space, do not need to constantly release the control, not
Java prints the positive pyramid, inverted pyramid and "Water Shadow" pyramid, and java Water ShadowJava prints the positive pyramid, inverted pyramid, and "Water Shadow" Pyramid
-------~~~~~~~~~~
TeenagerThere is nothing to worry about. When I
Java-Cache hotspot data, using algorithms at least recently, java-hotspot
1. Least recently used algorithm LRU (Least recently used, Least recently used)
[Implementation]: The most common is to use a linked list to save cached data.
1. Insert new
Java basics-annotations and java Basics
Annotation is a form of metadata that provides non-program data and has no direct impact on the annotated code.
This article mainly summarizes the usage of comments. java platform (SE) pre-defined comments.
When using new to create an object, Java calls its constructor. The constructor and method have no return value, and their names are consistent with the class name. In the constructor, we can initialize some fields of the class. In this way, after
Related Resources1. Download Java Mail API package (version 1.1.2)Ftp://usmt.java.sun.com/pub/javamail/tyo39/javamail1_1_2.zipDownload the default POP3 software package:Ftp://usmt.java.sun.com/pub/javamial/tyo39/pop31_1.zipYou can also download the
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