, note: Piecemeal knowledge points sorted out only according to one's own understanding (slowly added)
The implementation of synchronous locks in Java relies on the internal queue Synchronizer, which implements the method by which the queue
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.
This article translates from: Java concurrency–part 7:executors and thread pools
Let's start by getting to know Java concurrency programming from a primer.
This article describes how to start creating threads and managing the thread pool, in the
Java5 begins, Java begins to support metadata, i.e. annotation (annotations/tags)
Meta Data:Metadata: Data describing the data:
All annotation are sub-interfaces of the Java.lang.annotation.Annotation interface, so annotation is a special
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
Before the enumeration to give an example, we all know that the published Csdn blog needs to be audited, then the status of the audit there are so many: audit, Audit pass, Audit does not pass (assuming that the current requirements are required to
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,
As a Java programmer who is often asked in an interview, let me summarize some of the questions that I often don't ask.
The difference between 1.HashMap and Hashtable
Often asked. Both are classes of the map interface, which enable
Another mechanism for implementing thread synchronization or mutual exclusion in Java 5 is the use of lock. Lock is more object-oriented than the synchronized method in the traditional threading model.Mutual-exclusion lock –lock (Reentrantlock)A
record some of the good pen questions you've encountered
1,
The following Java program outputs the result to ___.
int i=0;
Integer j = new Integer (0);
System.out.println (i==j);
System.out.println (J.equals (i));
Answer: TRUE
parsing:The subject
Concept distinction: java.util.Collection and java.util.Collections differences:
1, Java.util.Collection is a collection interface (a top-level interface of the collection Class). It provides a common interface method for basic operations on a
First, talk about final, finally, finalize the difference.Final modifier (keyword) If a class is declared final, it means that it cannot derive a new subclass and cannot be inherited as a parent class. Thus a class cannot be declared as abstract and
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
Ask:
When a thread enters the synchronized method A of an object, whether other threads can enter synchronized method B of this object.
For:
No. Other threads can access only the asynchronous method of the object, and the synchronization method
Java 9 Programming by Example.pdf
Https://www.packtpub.com/application-development/java-9-programming-example
Book Description
This book gets your started with essential software development easily and quickly, guiding you through Java ' s
JFrame The basic idea of –java GUI program is based on JFrame, which is the object of window on screen, which can be maximized, minimized and closed. JPanel –java Graphical user interface (GUI) Toolkit The Panel container class in swing, included in
CollectionCollections can be created using the collection's three concrete classes HashSet, Linkedhashset, TreeSetHashSet classLoad factorWhen the number of elements exceeds the product of the capacity and load factor, the capacity is automatically
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