Special statement: The main post is the learning process of knowledge collation, in order to review later. Some of the content is from the network (if an excerpt is not indicated). If the content is wrong, please also correct me!Series Articles:1.
Increment operator + +, increase the value by 1, the decrement operator---to reduce the value by 1
Operator
Code Snippets
Difference
++
x = 2 * m + +;
First Run x = 2 * m; Re-run m = m + 1;
In Java's exception class system, error and runtimeexception are non-check exceptions, others are check-type exceptions.All methods can throw runtimeexception and its subclasses without declaring throwsNon-runtimeexception can not be thrown without
First, what is a flow?Flow is an abstract concept, is the abstraction of input, in Java programs, the input/output operation of data is carried out in a "stream" manner. The device can be file, network, memory and so on.Flow has directionality, as
1 synchronization refers to the user process triggering IO operation and waiting or polling to see if the IO operation is ready to go to the streets to buy clothes, do it yourself, other things can not be done.2 asynchronous asynchronous refers to
1. What is a streamThe stream in Java is an abstraction of a sequence of bytes, and we can imagine a water pipe, except that it is no longer the water that flows in the pipe, but the sequence of bytes. Like currents, streams in Java also have a
Eighth Week Java Learning experienceThrough this week's study, relative to the previous week, the understanding of the clone, and the understanding of lambda more deeply, but still can not be familiar with the master, only mastered the relatively
Read a simple example of Java network programming before entering the topic: The code is simple, the client communicates with the server, and the server replies get for each input to the client. Note that the server can allow multiple clients to
Package Helpdoc;/*** This is a tool class for manipulating arrays* @author Songyusheng* @version v.10*/public class arraytool{/*** This is a private structure*/Private Arraytool () {}/*** This is the way to iterate through the array, the following
For the Sleep () method, we first need to know that the method belongs to the thread class. The wait () method is part of the object class.The sleep () method causes the program to pause execution for the specified time, giving up the CPU to that
One, SPI mechanismHere is a concept of SPI, SPI English for service Provider interface is literally understood as the service provider interface, as in the name of the SPI to understand the SPI is the service provider interface My definition of SPI:
Subclass a inherits the parent class B,a a=new a ();The correct order of execution is: parent class B Static code block, subclass a static code block, parent class B non-static code block, parent Class B constructor, subclass a non-static code block,
To facilitate the understanding of the later learning, record!Run-time Data area1. Thread Sharing1.1 Method Area1.1.1 Running a constant-volume pool (runtime Constant)1.2 Heaps (heap)2. Thread-Private2.1 Virtual machine stack (VM stack)2.2 Local
The Recruit apologizes! Layout does not understand, if the technical error, please correct me, or send me email [email protected] greatly appreciated!This paper tries to explain the essence of the book through the form of the article summary, even
The difference between keywords continue, break, and return in Java:Continue: Jump out of this loop to continue the next cycleBreak: Jumps out of the loop body and resumes execution of the function body outside the loopReturn: Jumps out of the
Several common queues in JavaThe difference between a blocking queue and a normal queue is that when the queue is empty, the operation to get elements from the queue is blocked, or when the queue is full, the operation to add elements to the queue
I reviewed the concepts related to Io, NIO and AIO in the morning and recorded some of these points.
from the programming language level
BIO | NIO | AIO in the Java perspective, understanding, Linux C also has the concept of AIO (library),
Export JVM memory information on CentOS, and export jvm memory from centosFirst, check the Tomcat process Id:
[root@iZ25Z ~]# ps aux | grep javawww 2111 4.0 23.5 1637648 452756 ? Sl 10:12 4:35 /usr/java/jdk1.7.0_80/bin/java
Simple RPC framework-heartbeat and reconnection mechanism, rpc framework heartbeatHeartbeat
It is to tell others that they are still alive. In the simple RPC framework, TCP persistent connections are used. To ensure a valid persistent connection, a
Advantages and disadvantages of mysq index Establishment
Advantages and necessity of index creation:
1. By creating a unique index, You can ensure the uniqueness of each row of data in the database table;
Second, it can greatly speed up data
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