Java does not understand compression directly read the. zip compressed File This example, the following demo of the project source generation download address is as follows: Source code Download address
Package com.sd.test.readzip;
Import Java.io.
Encapsulation, inheritance and polymorphism are the three core features of object-oriented programming.
Encapsulation is an important concept in object-oriented technology, it is a kind of information hiding technology, it embodies the idea of
I'm starting the tomcat7.0.6 in MyEclipse today when I start the error:
Java.lang.noclassdeffounderror:org/apache/juli/logging/logfactory
At Org.apache.catalina.startup.bootstrap. (bootstrap.java:56)
caused
Sina Weibo API (Java edition)============================Modification matters:1, the interface returns the result uses the JSON object way to encapsulate2, modify the Weiboresponse Hollow string ("") call to judge the bug3. Modified the problem of
Most recent enumeration types are more frequently used
DK1.5 introduces a new type--enumeration. In Java it is a "small" function, but to my development has brought "big" convenience.
usage One: Constants
Before JDK1.5, we defined constants as:
How to use the Split function in Java
There are also String.Split () methods in the Java.lang package, similar to. NET, where returns are a character array, but there are a few tricks to use.If executed: "2|33|4". Split ("|")
The result is:
""
2
|
3
The callable interface represents a piece of code that can invoke and return the result; The future interface represents the asynchronous task, which is the future result of a task that has not yet been completed. So callable is used to produce
Alibaba Java Development Manual
Java Development Manual
Version number
Develop a team
Update Date
Notes
1.0.0
Alibaba Group Technology Department
2016.12.7
Exposing to the Java industry for the first time
I. Programming protocol
(i) Naming
Note: this information is searched through the network and then sorted into
First of all, to explain the parameters of the configuration file, so that the configuration can be reasonable.
Description of parameter meaning:
Configure Root Logger
Its
first of all, what the stream is.
The flow is an abstract concept, is the abstraction of the input, in the Java program, the data input/output operation is in the "Flow" way. Devices can be files, networks, memory, and so on.
Flow has
Look at a program.
String t = "a| | b| | c| | D ";
string[] temp = t.split ("\\|\\|");
System.out.println (temp.length);
Mainly is: "\\|\\|" stands for what meaning.
The beginning is a bit of a monk, then carefully see understand, the original is
One, string uses private final char value[] to implement string storage
So string objects can no longer modify the contents of the strings stored in this object after they are created, so the string essence is a character array char[] and its type
New Lightweight Java Open source Framework---Spring
Author: Egg
Micro Blog: HTTP://WEIBO.COM/XTFGGEF
Source: http://blog.csdn.net/zhangerqing
Spring is a lightweight Java framework whose core idea is Di (Dependency injection, Dependency injection)
Uses the JDK's own javax.xml.bind.JAXBContext to convert objects and XML strings to and from each other. If there is a slight restriction on the XML format to be generated, a little control is needed for the object that generates the XML, and
JSON serialization: Converts a Java bean into a JSON string; JSON deserialization: Converts a JSON string into a Java bean.
XML serialization: Converting Java beans to XML files; XML deserialization: Converting an XML file into a Java bean.
1. XML
Release date: End of 2006
New features:
The new features in the API library are not too much,
The main features are new features and enhancements in scripts, Web service,xml, compiler APIs, databases, JMX, networking, and instrumentation.
(1), HTTP
ObjectiveToday, small partners encounter a small problem, the thread pool submitted by the task if there is no catch exception, then will be thrown where to go, before it did not study, in the principle of seeking truth from facts, looked at 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