A good Java programmer must understand how the GC works, how to optimize the performance of the GC, and how to interact with the GC in a limited way, because some applications have higher performance requirements, such as embedded systems, real-time
The Executorservice interface inherits the executor interface and defines some lifecycle methods
Public interface
Executorservice extends Executor {
void shutdown ();
List Shutdownnow ();
Boolean IsShutDown ();
Boolean
Atomiclongarray Introduction and Functions List
In the "Java Multithreaded Series-" Juc Atomic class "02 Atomiclong Atomic Class", Atomiclong is the role of the operation of the long plastic to atomic operations. The role of Atomiclongarray is to
Introduction to FileDescriptor in this chapter
FileDescriptor Introduction
FileDescriptor is a "file descriptor".
FileDescriptor can be used to indicate open files, open sockets, and so on.
In the case of FileDescriptor: When FileDescriptor
Use extensible Verbose Toolkit for garbage collection
Improves application performance, optimizes garbage collection, and discovers application problems
Introduction: Extensible Verbose Toolkit is IBM's new tool, designed to help diagnose and
In all programming languages, an unavoidable problem is the control of names or names. Suppose you use a name in a module of a program, and another programmer uses the same name in another module. At this point, how do you differentiate two names
What is the serialization of Javais to save an object to a file, can be transferred through the stream, you can read the contents of the file into an object, serialization is to solve the object flow in the time of the read and write operations
1. Common algorithms:A. Reference counting method: Configure an shaping counter for each object, when there is a reference, counter +1, when the reference fails, counter-1. Counter 0 for garbage collectionProblem: A object reference b,b object
synchronization container (not thread-safe for iterative read and write under concurrency)
Vector, Stack, HashTable
Classes created by static factory methods of the collections class (such as Collections.synchronizedlist)
p264~p267:1. errors may occur in the program: User input error, device error, physical limit error, code error2. If some operations are not completed due to an error, the program should : return a security state and be able to allow the user to
Store the data of different numbers on different machines to disperse the pressure. If we have 1 million QQ number, 10 machines, how to divide it?The simplest and most brutal method is to use the QQ number directly to 10, the result is 0-9
Don't say much nonsense, first come to the program. Step by step look at the notes,
The first thing to note is that when using the dichotomy, the array must be ordered, that is, from large to small, or from smallest to largest, and cannot be
One, save true or FALSE, use the Boolean variableThere are two values: True TrueFalse falseIi. accept input information from the console by creating a scannerScanner input New Scanner (system.in);int age input.nextint ();//Receive int typeString
Identifier:1. Identifiers can consist of letters, numbers, underscores (_), dollar symbols ($), but cannot contain other special characters, such as @,%, space, etc., and cannot begin with a number.2. Identifiers cannot be Java keywords and reserved
I. Java naming conventions
Class name: For all classes, the first letter of the class name should be capitalized. If the class name consists of several words, the first letter of each word should be capitalized, such as Myfirstjavaclass.
The Socketchannel in Java NiO is a channel that connects to a TCP network socket. Socketchannel can be created in the following 2 ways:
Open a socketchannel and connect to a server on the Internet.
When a new connection arrives at
Thinking logic of computer programs (68) and thinking 68
This section continues with the content of the previous section and discusses how to use wait/notify to implement more collaboration scenarios.
Start at the same time
At the same time, it is
Thread collaboration Methods: sleep, yield, wait, join, and sleepyield Sleep)
When the t Thread calls Thread. sleep (), the Thread t will sleep for a specified time.
Thread. sleep () and Thread. currentThread (). sleep () have the same
Java learning notes-Object-oriented Thinking, java learning notes
1. unchangeable class generation object and variable range
2. Use of the keyword "this"
3. Use class abstraction to create software
4. Create a class through the relational model
5.
10 SQL errors that Java programmers can easily make
Java Programmers need to mix Object-oriented Thinking and general imperative programming methods in programming. Whether the two can be perfectly combined depends entirely on the programmer's level:
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