What is a thread: Sometimes it is also a lightweight process, which is the smallest unit of program execution flow.
A standard thread consists of a thread ID, a current instruction pointer (PC), a collection of registers, and a stack.
A process
sequential programming , that is, all things in a program can only perform one step at any time. concurrent programming , programs can execute multiple parts of the program in parallel.
21.2.1 Defining tasks
A thread can drive a task, so you need a
Annotations (also known as metadata ) provide a formalized way for us to add information to our code so that we can use it very conveniently at a later point in time.
1 Basic syntax
The annotated method does not differ from the other methods.
Iv. Common Categories4.1 String-related classes (string stringbuffer)4.1.1String class 4.1.2StringBuffer class (representing variable)Explain the mutable and immutableString S1 = "Hello";String s2 = "World";S1+=S2;It actually opens up a piece of
From http://www.cnblogs.com/ggjucheng/archive/2012/11/29/2795468.html
CodeWhen a method is called, it returns the following results:
Complete all statements of the Method
Return Statement appears
Throw an exception
Take the first
From http://www.cnblogs.com/ggjucheng/archive/2012/12/17/2821935.html
English from http://docs.oracle.com/javase/tutorial/java/package/summary-package.html Package
This section describes how to bind classes and interfaces to a package, how to use
From http://www.cnblogs.com/ggjucheng/archive/2012/11/26/2789722.html
Access members of the parent class
If you overwrite the methods of the parent class, you can use super to call the methods covered by the parent class, you can also use super
From http://www.cnblogs.com/ggjucheng/archive/2012/12/17/2821925.html
English from http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html Array
An array is an object container that holds a fixed number of values of the same type.
Start learning Java ...... The code is as follows:Copy code Public class Hello {Public static void main (String args []) {System. out. println ("hello world! "); } } Day 2 The code is as follows:Copy code // TestJava2_1.java, a simple
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.