Java NIOCore section (Simple):Channels (channel)Buffers (buffer)Selectors (selector)-----------------------------------------------------Channel implementations:FileChannel (Read and write data from a file)Datagramchannel (Can read and write data in
There are 4 ways to explicitly create an object:1. Create objects with the new statement, which is the most common way to create objects.2. Using the Reflection method, call the Java.lang.Class or Java.lang.reflect.Constructor class newinstance ()
First, Introduction1, Countdownlatch is a synchronization counter, the construction of an int parameter, which is the initial value of the counter, each call Countdown () method, the counter minus 1, the counter is greater than 0 o'clock, the await (
are judged equal, no difference to basic variables, except for dynamic variables (that is, objects):
= =: values are equal. For object references, that is, the reference value is equal to the address. That is, if object a A, a==b
call the Parent class construction method with SuperClass if you do not explicitly declare a constructor method, the default construction method without parameters is automatically generated. 1. First validate with a parameterless parent constructor
1. IntroductionMultithreading technology belongs to the knowledge of the operating system scope;Processes and ThreadsAs you can see, an application is a process that contains at least one thread in a process, and the process is the container for the
MapThe object that maps the key to a value. A map cannot contain duplicate keys, and each key can be mapped to at most one value.1 ImportJava.util.HashMap;2 ImportJava.util.Map;3 4 5 Public classTest1 {6 7 Public Static voidMain (string[] args)
1. Concept:The hash is actually just a concept, and there is no real point. Its purpose is to ensure that the data is evenly distributed within a certain range. So it is perfectly possible to generate the same hash code for different data.Now is the
1. cross-conversion of string and StringBufferThe idea is: a-----b conversion, we convert A to B, in fact, to use the function of B, b-----A conversion, we may be the result of a type, so also to convert back2. Case Demo:1 Packagecn.itcast_07;2 3 /*
[Leetcode] Move Zeroes, leetcodezeroesMove Zeroes questions:
Given an arraynums, Write a function to move all0'S to the end of it while maintaining the relative order of the non-zero elements.
For example, givennums = [0, 1, 0, 3, 12], After calling
Self encouragement of a dregs, self encouragement of Dregs
As a scum, it is still evolving on the road to become a programmer, A large part of the reason is that my personal interests like to "do" in the dead (that is, to be so arrogant and to die>
Difference between isNotEmpty and isNotBlank in StringUtils, stringutils. isblank1. public static boolean isEmpty (String str)Determines whether a string is null. If it is null, the standard is str = null or str. length () = 0.The following is an
Ajax, jqueryajax
1. What is ajax?(Asynchronous javascript and xml)It is a technology used to improve user experience. Its essence is to use a special object (XMLHttpRequest) provided by the browser to send requests asynchronously to the server,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