Recent Posts
-
Examples of different data flow applications of Java
It is divided into byte stream (8bit) (InputStream and ouputstream) and character stream (16bit) (reader and writer) a…… -
Java (III) conversion between basic types
Automatic type conversion: types with small capacity are automatically converted into data types with large capacity. …… -
How to automatically complete new objects in eclipse
For example, we are entering: Then press Ctrl + 1, Select the first item: -
Static keyword of Java
Design idea of class attribute and class method: Scope of use: in Java classes, static can be used to modify attribute…… -
Variable number formal parameters of Java
//Use array parameters to define methods public static void test (int a,String[] books); //A variable number of formal…… -
Collection, a tool class of Java operation collection
Collections is a tool class that operates on collections such as set, list, and map. Collections provides a large numb…… -
Java (I) basic knowledge
Common DOS commands: History of computer language: Javase: Java Standard Edition, which provides a complete Java core …… -
Logical operators of Java
&-Logic and | - logic or- Logic non &&- short circuit and | - short circuit or ^ - logic XOR Points needin…… -
Thread of Java (thread creation method, thread class in Java, thread synchronization, thread life cycle, communication between threads)
CPU: 10 core, main frequency 100MHz 1 core dominant frequency 3GHz So which CPU is better? Isn't the more CPU cores th…… -
Java inner class
In Java, the definition of one class is allowed to be located inside another class. The former is called internal clas…… -
Java annotation
Annotation is actually a special tag in the code. These tags can be obtained during compilation, class loading and run…… -
Initialization block of jvaa
1. Function of initialization block: initialize Java objects; 2. Program execution sequence: declare the default value…… -
Singleton design pattern of Java
What is a design pattern? Design pattern is the code structure, programming style and thinking way to solve problems a…… -
Dynamic agent design pattern of Java
Proxy: an operation class that specifically completes proxy requests. It is the parent class of all dynamic proxy clas…… -
Reflection mechanism of Java
It's hard to understand what this is, for example. Suppose we have a picture of animation now. Through this picture, w…… -
-
Parameter passing of Java methods (value passing and reference passing)
Method is meaningful only when it is called by its class or object. If the method has parameters: Formal parameter: pa…… -
Java interface
Sometimes you must derive a subclass from several classes and inherit all their properties and methods. However, Java …… -
Java = = operator and equals operator
==Operator: Equals operator: Output: false false Output: true true Output: true true true false Note: A1 and B1 point …… -
Priority of Java operators
The priority decreases from top to bottom, that is, the priority of the previous line is always greater than that of t…… -
Java of Java io. File related methods
java. io. Use of file. IO principle and stream classification. File stream: FileInputStream, fileoutputstream, FileRea…… -
Subclass object instantiation process of Java
Suppose there is a parent class: There is a subclass: Student stu = new student(); The process is as follows: -
Object class of Java
Object is the parent class of all classes, also known as the base class. If you do not use the extends declaration in …… -
Polymorphism of Java
Polymorphism: the most important concept in object-oriented, which is embodied in Java in two ways: Member variable ca…… -
Final keyword of Java
When declaring classes, attributes and methods in Java, you can use the keyword final to modify them, indicating "fina…… -
This keyword of Java
What is this? When will it be used? This is used when the object calling the method needs to be used in the method. Fo…… -
Get the type of variable in Java
Java must define a function to obtain the type of variable: Output: Java lang.Short -
Encapsulation of Java
In Java, the member variable is declared as private, and then public methods are provided: setxxx() and getxxx() to op…… -
Anonymous inner class of Java
Person. java Main. java Output: The execution is to construct an anonymous subclass of the method Jack -
Construction methods such as Java
Characteristics of the constructor: Function of constructor: create objects and initialize them; Syntax format: Modifi…… -
Bit operator of Java
Integer to binary: integer toBInaryString(6) < <: move left, 3 < < 2 = 3 * 2 * 2 = 12 >>: shift righ…… -
Enumeration and annotation of Java
JDK1. 5. The newly added enum keyword is used to define enumeration classes. Differences between enumeration class and……