Home Technical Articles Java Javagetting Started
What does java encapsulation mean?

What does java encapsulation mean?

Encapsulation refers to a method of packaging and hiding the implementation details of an abstract functional interface. The main function of encapsulation is that we can modify our own implementation code without modifying the program fragments that call our code.

Aug 12, 2020 pm 04:19 PM
java 封装
Introduction to inherited features and keywords

Introduction to inherited features and keywords

This article is from the Java introductory tutorial. It introduces you to the knowledge about inheritance characteristics and keywords. It has certain reference value and I hope it can help you. Subclasses have non-private properties and methods of the parent class; inheritance improves the coupling between classes.

Aug 11, 2020 pm 04:28 PM
继承 特性 关键字
Introduction to java basic data types

Introduction to java basic data types

There are two major data types in Java, namely: 1. Built-in data types; 2. Reference data types. The Java language provides eight basic types, including six numeric types, one character type, and one Boolean type.

Aug 11, 2020 pm 04:17 PM
java 基本数据类型
What are the necessary conditions for the existence of polymorphism and how to implement it?

What are the necessary conditions for the existence of polymorphism and how to implement it?

Necessary conditions for the existence of polymorphism: 1. Inheritance; 2. Rewriting; 3. Parent class reference pointing to subclass object; Polymorphism implementation method: 1. Rewriting; 2. Interface; 3. Abstract class and abstract method.

Aug 10, 2020 pm 04:40 PM
多态 条件 实现方式
Detailed introduction to singleton pattern

Detailed introduction to singleton pattern

The singleton pattern is one of the simplest design patterns in Java and is a creational pattern. It provides the best way to create objects. The singleton pattern involves a single class that is responsible for creating its own objects while ensuring that only a single object is created.

Aug 10, 2020 pm 04:29 PM
单例模式
What are the similarities and differences between wrapper types and basic data types in Java?

What are the similarities and differences between wrapper types and basic data types in Java?

This article is from the Java introductory tutorial. It introduces the similarities and differences between packaging types and basic data types in Java. It has certain reference value and I hope it can help everyone. Basic types do not need to be created through the new keyword, and wrapper classes require the new keyword.

Aug 06, 2020 pm 05:17 PM
java 包装类型 基本数据类型
What is a read-write lock

What is a read-write lock

The read-write lock can allow multiple multi-threads to access at the same time, but when the write thread accesses, all read threads and other write threads will be blocked. Read-write locks actually maintain a pair of locks, one read lock and one write lock. By separating read locks and write locks, its concurrency is greatly improved compared to exclusive locks (exclusive locks).

Aug 06, 2020 pm 05:04 PM
读写锁
How to determine whether a string is an IP address in java

How to determine whether a string is an IP address in java

Judgment method: 1. Determine whether the character length is between 7-15 digits; 2. Determine whether it can be divided into four segments with decimal points; 3. Determine whether each segment is a number; 4. Determine whether each segment of numbers is between 0- between 255.

Aug 06, 2020 pm 04:07 PM
java 字符串 ip地址
What are the differences between ArrayList, LinkedList and Vector?

What are the differences between ArrayList, LinkedList and Vector?

ArrayList and Vector are both arrays, and LinkedList is a doubly linked list. Vector is thread-safe, while ArrayList and LinkedList are not thread-safe.

Aug 06, 2020 pm 04:01 PM
ArrayList LinkedList Vector
Implement quick sorting in java (code example)

Implement quick sorting in java (code example)

This article comes from the java introductory tutorial: the article shares with you the method of implementing quick sorting, which has certain reference value. I hope it can help everyone. Quick sort, also known as partition-exchange sort, or quick sort for short, is a sorting algorithm.

Aug 05, 2020 pm 05:40 PM
java 快速排序
What are the differences between member variables and local variables?

What are the differences between member variables and local variables?

The difference between member variables and local variables: For local variables, each thread and each call execution is a new life cycle; for instance variables, the life cycle is initialized with the creation of the object and dies with the recycling of the object.

Aug 05, 2020 pm 05:32 PM
成员变量 局部变量
what are java annotations

what are java annotations

Java annotation (Annotation), also known as Java annotation, is an annotation mechanism introduced by JDK5.0. Java annotations can obtain annotation content through reflection. Annotations can be embedded into the bytecode when the compiler generates the class file.

Aug 05, 2020 pm 05:13 PM
java 注解
What is JVM? Where is it?

What is JVM? Where is it?

The JVM is essentially a program that recognizes .class bytecode files, parses its instructions, and ultimately calls functions on the operating system. The JVM runs on the operating system and has no direct interaction with the hardware.

Aug 05, 2020 pm 04:47 PM
JVM 位置
Summary of java modifier knowledge points

Summary of java modifier knowledge points

This article is from the Java introductory tutorial. It introduces the relevant knowledge of Java modifiers to everyone. It has certain reference value and I hope it can help everyone. Modifiers in Java are divided into class modifiers, field modifiers, and method modifiers.

Aug 04, 2020 pm 04:58 PM
java 修饰符

Hot tools Tags

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)

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

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use