Java
-
Java of Java io. File related methods
java. io. Use of file. IO principle and stream classification. File stream: FileInputStream, fileoutputstream, FileRea…… -
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 = = operator and equals operator
==Operator: Equals operator: Output: false false Output: true true Output: true true true false Note: A1 and B1 point …… -
Java interface
Sometimes you must derive a subclass from several classes and inherit all their properties and methods. However, Java …… -
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…… -
-
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…… -
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…… -
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…… -
Initialization block of jvaa
1. Function of initialization block: initialize Java objects; 2. Program execution sequence: declare the default value…… -
Java annotation
Annotation is actually a special tag in the code. These tags can be obtained during compilation, class loading and run…… -
Java inner class
In Java, the definition of one class is allowed to be located inside another class. The former is called internal clas…… -
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…… -
Logical operators of Java
&-Logic and | - logic or- Logic non &&- short circuit and | - short circuit or ^ - logic XOR Points needin…… -
Java (I) basic knowledge
Common DOS commands: History of computer language: Javase: Java Standard Edition, which provides a complete Java core …… -
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…… -
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…… -
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…… -
How to automatically complete new objects in eclipse
For example, we are entering: Then press Ctrl + 1, Select the first item: -
Java (III) conversion between basic types
Automatic type conversion: types with small capacity are automatically converted into data types with large capacity. …… -
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…… -
Abstract class of Java
With the definition of new subclasses in the inheritance hierarchy, the class becomes more and more specific, while th…… -
Java generics
What is generics? The generic type is jdk1 5 newly added to solve the security problem of data types. Its main princip…… -
-
Java factory method design pattern
Factory method pattern is the most widely used pattern in design pattern. In object-oriented programming, the creation…… -
Java array
There are several ways to declare a one-dimensional array: Int a [] and int [] a Dynamic initialization: int [] a = Ne…… -
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 …… -
+ + and in Java–
Difference between I + +, I -- and + + I, -- I: I + +, I -- assignment before operation; @H_ 502_ 17@++i , -- I is cal…… -
JavaBean of Java
JavaBean is a reusable component written in Java language. JavaBeans refer to Java classes that meet the following sta…… -
Program flow control of Java
Sequential structure: the code is executed from top to bottom; Branch structure: if () { } else{ } if () { } else if (…… -
Java collection source code analysis (I): collection and abstractcollection
summary As we know, the container in Java is divided into map set and collection set, and the container in collection …… -
Java collection source code analysis (II): list and abstractlist
summary @R_ 301_ 2444@ this article basically introduces the upper structure of the list interface, that is, the itera……
