
Let's take a look at what 'weak' references are in Java?
The java basic tutorial column introduces that when an object obj is created in Java, it is placed in the heap. When the GC runs and finds that there is no reference pointing to obj, the heap memory space of the obj object will be reclaimed. In other words, an object is recycled...
Jan 06, 2021 pm 06:10 PM
How to determine whether the key exists in map in java
The method for map in Java to determine whether a key exists: 1. Judge through [containsKey("key")]; 2. Judge through the [hasNext()] method, the code is [Set set = map.keySet();].
Jan 05, 2021 pm 05:53 PM
How to create a java project in eclipse
How to create a java project in eclipse: first click the file option pointed by the arrow and create a new project; then click the src package under the project, right-click SEC, select new and CLASS pointed by the arrow; finally enter the class name in the input box and check The box pointed by the arrow.
Jan 05, 2021 am 11:40 AM
Learn the use of Java locks with Netty
The java basic tutorial column introduces the size of the lock object itself to reduce the space occupied. Atomic long V.S long The former is an object, including an object header to save hashcode, lock and other information. It occupies 16 bytes in a 64-bit system....
Jan 04, 2021 am 10:04 AM
Helpful examples of encapsulation and inheritance in Java
Basic java tutorial introduces the use of encapsulation to implement the penguin class of the electronic pet system. Correctly enter the health value and intimacy to ensure the validity of the health value (0-100), otherwise take the default value of 60 to ensure the validity of the intimacy (0-100), otherwise Take the default value of 60 and the code is as follows...
Jan 02, 2021 am 10:51 AM
Java implementation ensures the consistency of double writing between cache and database
The java basic tutorial column introduces distributed cache, which is an indispensable component in many distributed applications today. However, using distributed cache may involve dual storage and double writing of cache and database. As long as you double write, you will definitely There is a problem of data consistency, so how do you solve the consistency problem?
Dec 30, 2020 pm 05:51 PM
Introducing the three simplest implementation methods of Java scheduled tasks
The basic Java tutorial introduces that scheduled tasks are particularly common in actual development. For example, the e-commerce platform automatically cancels unpaid orders after 30 minutes, as well as data summary and backup in the early morning, etc., all of which need to be achieved with the help of scheduled tasks, so we will come to this article Let’s take a look at some of the simplest ways to implement scheduled tasks.
Dec 29, 2020 pm 05:45 PM
Insight String string
Introduction to the java basic tutorial column In Java 6 and previous versions, the String object is an object that encapsulates a char array. It mainly has four member variables: char array, offset offset, character count, and hash value hash. ...
Dec 28, 2020 pm 05:27 PM
Introduction to Java CAS principle analysis
The java basic tutorial column introduces the full name of CAS, compare and swap, which is a mechanism used to achieve synchronization functions in a multi-threaded environment. A CAS operation contains three operands -- a memory location, an expected value, and a new value.
Dec 24, 2020 pm 05:37 PM
What is the role of transient keyword
The function of the transient keyword is: variables modified by transient do not participate in serialization and deserialization. When an object is serialized, the values ??of transient variables are not included in the serialized representation, whereas non-transient variables are included.
Dec 24, 2020 am 10:43 AM
How to get the current system time in java
How to get the current system time in java: get the current time and the time 30 seconds before the current time, the code is [SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");].
Dec 18, 2020 am 11:27 AM
Record the pitfalls of Java collection class List
The java basic tutorial column introduces that the collection class includes two major categories: Map and Collection. Among them, the List below Collection is one of the collection classes we often use. Many business codes are inseparable from it. Today, let’s take a look at the List. Some pits.
Dec 17, 2020 pm 05:16 PM
The Java JSON parser that I think is the best: Jackson
The Java Basics Tutorial column introduces the Java JSON parser. In today's programming world, JSON has become the preferred protocol for transmitting information from the client to the server. It is no exaggeration to say that XML is the one who was shot dead on the beach. .
Dec 16, 2020 am 09:48 AM
Java uses reflection to convert objects into MongoDb structures
As Java programmers, if we use reflection well, we can not only improve our technical level, but also develop better projects. However, although many people have heard of reflection, they don't know where to use it. Then, the basic Java tutorial starts from actual work, using reflection to convert objects...
Dec 15, 2020 pm 05:30 PM
Hot tools Tags

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version
Chinese version, very easy to use
