In some cases, the main thread creates and starts a child thread, if a large number of time-consuming operations are required in a child thread, the main thread will often end before the end of the child thread, and if the main thread wants to wait
Last blog we talked about the basic concepts of classes and objects, and then we'll talk about constructors and overloads. Presumably everyone has a certain understanding of the constructor, we will discuss the following. One, what is the
Pessimistic lock Introduction (encyclopedia):
A pessimistic lock, as its name implies, is conservative in that the data is modified by the outside world (including other transactions of the system, as well as transactions from the external system),
Because of the learning of Android, I looked back at Java about inheritance and interface, as well as the transition and downward transformation of the content.
If you are enlightened, understand the meaning of the interface, if there is a problem,
written in front:Top two blogs we introduced the basic structure of the simple Java GUI and the event monitoring mechanism respectively. This time we will introduce the dual event (multi event) listening mechanism and introduce the inner class. 1.
Description: This is "Dahua design pattern" a Book of Learning abstracts and online related information Digest, the original book code examples in C # write, the following Java rewrite.
1. Policy pattern: Defines a series of algorithms,
Some time ago, when I was using Java Swing as a client, have to add a background picture on the main panel needs, so they find some data on the internet, some netizens said with JLabel to do, by setting its Icon property to achieve, but personal
Overview of keyword new
"New" is the most commonly used keyword for Java developers, we use new to create objects, use new and instantiate anything we need with the ClassLoader, but you have a deep understanding of what new is doing in the moment
1. Definition:The definition of a class is placed inside the definition of another class, and the class that contains the inner class is called the outer class
2. The role of the internal class:
(1) The inner class provides a better encapsulation
Object-oriented programming (OOP)
Describe the problem according to the problem, rather than the computer that runs the solution. Each object has a state, an action, and the user can ask the object to perform these actions. Object-oriented five
The cross-platform nature of Java because it has virtual machines for different platforms.
1.2 Java Virtual machine
The main task of the Java Virtual machine is to load the class file and execute the bytecode. As you can see from the figure below,
When writing concurrent programs in Java, it is often the case that a thread has been unresponsive for a large amount of computation or blocking, and we may be impatient (or not wanting to make it occupy too many resources) to terminate it in time,
Turn from: https://segmentfault.com/a/1190000002646193
Generics are generated because of the creation of a container class
generic class
The container class should be one of the most reusable class libraries. Let's look at how a container class
Read Table of Contents one, preface second, the meaning and use of callback three, Java implementation Interface callback four, Android interface callback v. Reference I, foreword
Recently, looking at the part of the Android fragment and activity
has been very vague on this concept, can not catch its point, do not understand its true meaning. Recently I saw the dynamic SQL tag inside the mybatis, which made me realize the dynamic loading mechanism of java.
@SelectProvider (type =
Basic Concepts
blocking and non-blocking
Blocking is when reading and writing, if nothing is readable at the time, or is temporarily not writable, the program goes into waiting until something is readable or writable, and
if nothing is
The set set in Java is a collection that does not contain duplicate elements, first we look at the traversal method
Package com.sort;
Import Java.util.HashSet;
Import Java.util.Iterator;
Import Java.util.Set;
/**
* A collection that does not
First, abnormal
1, what is abnormal
In Java, when the program is running in the abnormal situation is called an exception, in the form of exception classes to encapsulate these abnormal conditions, through the exception handling mechanism for the
We continue to discuss the threadpoolexecutor thread pool. In the simplest use of the threadpoolexecutor thread pool, which is given in the previous article, we have adopted only one of the simplest threadpoolexecutor constructors:
Public
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