包含标签:Java 的文章
-
Collection of Java (set, list, map)
The Java collection class is stored in the Java, UTI package and is a container for storing objects. Java collections …… -
Java interface
Sometimes you must derive a subclass from several classes and inherit all their properties and methods. However, Java …… -
Java (III) conversion between basic types
Automatic type conversion: types with small capacity are automatically converted into data types with large capacity. …… -
Java simple class object instantiation process
Suppose there is such a class: Person p = new Person(); The creation process of the whole object is as follows: -
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…… -
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…… -
Enumeration and annotation of Java
JDK1. 5. The newly added enum keyword is used to define enumeration classes. Differences between enumeration class and…… -
-
Abstract class of Java
With the definition of new subclasses in the inheritance hierarchy, the class becomes more and more specific, while th…… -
Bit operator of Java
Integer to binary: integer toBInaryString(6) < <: move left, 3 < < 2 = 3 * 2 * 2 = 12 >>: shift righ…… -
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…… -
Java generics
What is generics? The generic type is jdk1 5 newly added to solve the security problem of data types. Its main princip…… -
Construction methods such as Java
Characteristics of the constructor: Function of constructor: create objects and initialize them; Syntax format: Modifi…… -
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…… -
-
Anonymous inner class of Java
Person. java Main. java Output: The execution is to construct an anonymous subclass of the method Jack -
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…… -
Java factory method design pattern
Factory method pattern is the most widely used pattern in design pattern. In object-oriented programming, the creation…… -
Encapsulation of Java
In Java, the member variable is declared as private, and then public methods are provided: setxxx() and getxxx() to op…… -
Initialization block of jvaa
1. Function of initialization block: initialize Java objects; 2. Program execution sequence: declare the default value…… -
Java array
There are several ways to declare a one-dimensional array: Int a [] and int [] a Dynamic initialization: int [] a = Ne…… -
Get the type of variable in Java
Java must define a function to obtain the type of variable: Output: Java lang.Short -
Java annotation
Annotation is actually a special tag in the code. These tags can be obtained during compilation, class loading and run…… -
Can constructors in the parent class of Java be inherited by subclasses?
The subclass inherits the properties and methods of the parent class by default, but does not inherit the constructor …… -
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…… -
Java inner class
In Java, the definition of one class is allowed to be located inside another class. The former is called internal clas…… -
+ + and in Java–
Difference between I + +, I -- and + + I, -- I: I + +, I -- assignment before operation; @H_ 502_ 17@++i , -- I is cal…… -
Final keyword of Java
When declaring classes, attributes and methods in Java, you can use the keyword final to modify them, indicating "fina…… -
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…… -
JavaBean of Java
JavaBean is a reusable component written in Java language. JavaBeans refer to Java classes that meet the following sta…… -
On Java collection (I): HashMap
1、 Overview HashMap is probably the implementation of the map interface we most often use. Without much more, let's t…… -
Talk about constants and variables
What are constants and variables Constant: the amount that the program will not change during operation is called a co……