Null and ""the DifferenceProblem one: null and""the DifferenceString s=NULLthe String.Trim () will throw an empty exceptionString s=""; String.Trim () will not throw, why?A: null means that an empty object is declared and is not a string at all.
1. Why rewrite the Clone () method?The shallow copy in Java does not re-create a new reference space for the object that you want to copy, and we'll rewrite the Clone () method when we need a deep copy.2. Example of the Equals () and Clone () method
abstract class: AbstractionAbstract: Not specific, can not understand. Abstract class representation manifests itself. in the continuous extraction process, the common content of the method declaration extraction, but the method is not the same, no
In the Main methodtry {System.out.println (AA ());} catch (Exception e) {TODO auto-generated Catch blockSystem.out.println ("hehe big");E.printstacktrace ();}System.out.println (4444);-----------------------------------static int aa () throws
How to use Threads:
public static void Main (string[] args) {Runnable r = ()->{while (true) {System.out.println ("thi S is thread "); } }; Thread t = new Thread (r); T.start (); while (true) {System.out.println ("This is
What is said on the Internet, I summed up a bit, and then I recently encountered a situation online as if no one had encountered, posted here1, environment variables, generally can compile files, it is not the amount of environmental variables2,
This article says that the class in the java.util.concurrent.atomic bag, a total of 12. There are very many articles on the Web parsing these classes. Here are some key points to talk about.These 12 classes can be divided into three groups:1. Common
20155208 Xu Zihan 2016-2017-2 "java program Design" 9th Week study summary Textbook Learning content summary 16th Chapter Integration Database16.1 JDBC PrimerThe composing application uses the communication protocol to carry on the instruction
Java socket based on UDP/IP protocol applicationServer side: 1, create Datagramsocket, specify port number2. Create Datagrampacket3, receive the data sent by the client4. Read dataClient:1. Define send message: The IP port number of the server to
1, the principle of hashingThe occurrence of a hash is due to a traditional data structure such as a linear table (array, linked list, etc.) in the tree. There is no corresponding relationship between the keyword and other storage locations.
Study number 2016-2017-2 "Java program design" Nineth Week Learning Summary# #JDBC入门Before formally introducing JDBC, it is known that JDBC is the solution to execute SQL, and developers use the standard interface of JDBC, where developers do not
Learn the function method, this can be in the future when we write the program, encountered to repeat the operation of the time, do not have to write each time, direct call on the line.It reduces our workload and also reduces the error rate. But in
(1) JMAP1. RoleThe print process, the core file, and the remote process's shared object store the map or heap storage details.1. RoleJmap [Options] pidjmap [options] Executable corejmap [options] [PID] [email protected]] Remote-hostname-or-ipIf the
Inheritance is the relationship between classes and classes, and is a very simple and intuitive concept, similar to inheritance in the real world (such as a son inheriting a father's property).Inheritance can be understood as a procedure for a class
Thread (java class notes), thread java class notes1. differences between the two methods 2. thread lifecycle 3. thread control (thread method) 4. thread Synchronization 5. differences between Thread synchronization locks 1 and 2 Methods A extends
SSM framework integration (Spring + SpringMVC + MyBatis) and springmvcmybatis
[SSM system architecture]
[Integration overview]
Step 1:
Integrate MyBatis with spring and use Spring to manage er interfaces.
Use the er scanner to automatically scan
Analysis of TCP three-way handshake and four-way handshake, analysis of tcp three-way handshake
Reprinted from http://www.jellythink.com/archives/705What is TCP?
I am not going to elaborate on what TCP is. When you see this article, I think you also
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