Reflection mechanism of 1.JAVA
At run time, judge the class to which any object belongs, construct an object of any class at run time, judge the member variables and methods of any class at run time, invoke the method of any object at run time, and generate dynamic proxy.
2. About ArrayList
There are a total of three ArrayList constructors:
(1) ArrayList () constructs an empty list with an initial capacity of 10. (2) ArrayList (collection<? extends e> c) constructs a list of elements that contain the specified Collection, arranged in the order in which they are returned by the Collection iterator. (3) ArrayList (int initialcapacity) constructs an empty list with the specified initial capacity. 3, abstract when an entity class integrates an abstract class, an abstract method in the abstract class must be implemented. 4.list&set the difference between list and set, the set cannot be duplicated.
The duplicate definition in set, without defining its own Equels method, calls the default, that is, the direct ==.5.ceil () expands and floor () shrinks.
Learn a little Java every day