1) building a Java development environment2) Understanding Java features (features)3) Understanding The functionality of Java virtual machine software4) Describe garbage collection concepts5) Enumeration implements the Java code security Method6)
Any object in Java is strongly converted to an interface type without compiling errors Public class Implements eatable{ publicstaticvoid main (String args[]) { = (drinkable) New Apple (); }} Interface eatable{} Interface
Learn about dynamic proxies for Java.In the dynamic agent mechanism of Java, there are two important classes or interfaces, one is Invocationhandler (Interface), the other is proxy (class), and this class and interface is necessary to implement our
The previous article mentioned Java garbage collection, today talk about the memory leaks in Java.First, we discuss the Java memory Management mechanism:In Java programs, we typically use new to allocate memory to objects that are on the heap.public
Recent projects have appeared in the timing of the task of the things, research, think very good, and later use to get, summed up the next.Only two types of java.util.Timer and quarts are introduced here.Java.util.TimerJava comes with a tool class
Replace and ReplaceAll are common substitution characters in Java
Public string Replace (char OldChar, char Newchar) replaces the OldChar character with a newchar character in a string, returning a new string
The public
The unsafe class is used in multiple classes of JDK source code, and this class provides some of the more underlying functions that bypass the JVM, and is based on its implementation to improve efficiency. However, it is a double-edged sword: As its
Implementation of polymorphism in Java: interface implementation, inheriting the parent class for method overrides, and method overloading in the same class.Look at the code:Package Com.company; Public classMain { Public Static voidMain (string[]
The following is basically the three most common method of Java string Type new string () does not describe the basic equivalent of the thirdString A; Declares a string type A, which does not have a memory address in the request, nor any point in
TOMCAT7 after startup: java.lang.NoSuchMethodException:org.apache.catalina.deploy.WebXml Addservlet the problem.and a 404 error occurred while accessing the deployed project.Solution 1:Add in Tomacat's context.xml,I'm using method one to solve the
One: Java Nio's FileChannelThe FileChannel in ===>java NiO is a channel connected to a File. You can read and write files through a file channel.===>filechannel cannot be set to non-blocking mode, it is always running in blocking Mode.Ii: Opening of
Recently a Web project needs to complete a small function, the use of file upload and then read the contents of the file to write to the database, here is the operation of the Excel file, Excel files are divided into two suffixes, 03 version of the
Use of four Java thread pools and four java threads
Java thread pool monitoring
Java provides four thread pools through Executors:NewCachedThreadPool creates a cache thread pool. If the thread pool length exceeds the processing requirement, Idle
Gson parses JsonObject, JsonArray, and gsonjsonobject
Important core classes in Gson:
Gson, JsonParser, JsonObject, and JsonArray.
The resolution steps are as follows:
Public void parserJsonArray (String strJson ){// Create a Gson objectGson gson =
Use the TCP client ----> server to transfer the file to the specified path and return a friendly feedback, tcp ----
First, a method for blind writing to transfer files, but the test found a very difficult problem, here first describes.
The error
Java --> xml pull parsing, java -- xmlpull
--> The pull parser is a built-in android parser. The parsing principle is similar to that of the sax Parser.
--> Xml file student. xml:
1 2 3 4 5 18 6 male 7 8 9 22 10 female 11 12 13 20 1
Java --> parse webpage data in Json format, java -- parse webpage in json format
--> Official parsing jar package: Link: http://pan.baidu.com/s/1pKDnXKv password: 694d
--> Offline Json format detection tool: Link: http://pan.baidu.com/s/1eSHkrOe
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