To become a Java guru, you must be at least very familiar with and be able to freely apply the following knowledge points:
1. serialization mechanism. (Some people think it is not an important technology. I declare with my experience that this is the first important knowledge point of the Java platform .)
2. rtti Mechanism
3. callback mechanism
4. reflection mechanism
Serialization:
It is the basis for in-depth object clone, Object Storage and recovery, and remote object calling. That is to say, it is the basis for object Pooled management and distributed reference, think about what the J2EE platform can do without it?
Rtti:
It is the basis of all encapsulation. Without it, interfaces, abstract classes, the parent class has no meaning. If there is no encapsulation, and there is no parent class, the subclass will not be a subclass.
Callback:
Callback is based on multiple threads, so do not talk about callback when there is no thread. the subclass calls the constructor of the parent class to call back. Any TMD constructor is called back, because any object inherits at least the object and calls the constructor of the object at least.
Callback mechanism:
When a main thread manages other threads, it does not need to use the polling method to check the status of each thread. Instead, it notifies the main thread when a certain status occurs in the Child thread. Someone is about to press me, my value reaches 100 (the term is triggering an event) so that the main thread receives these messages and then calls the corresponding method based on the message type.
In an example, I (main thread) take a bus to Beijing. When the car arrives in Beijing, I want to call the "get off" method. If I don't need to call back the mechanism, I will keep asking the driver, no? If I asked the driver more than three times and the driver was more powerful than me, he would beat me. If I used the callback mechanism, I would use a sub-thread (which could allow the driver to assume this role) run there. When I get notified, I will call "get off ()" instead of asking once in a while, in this way, I can save time sleeping or chatting with the girl in the car.
Reflection:
It is a runtime task that completes class loading, Class Analysis, bean introspection, and other functions. Why does JBuilder list its member variables and methods after a class name? If you want to know how many times an object's method has been called, what method do you use? This knowledge allows you to analyze the cause of errors from a row of exceptions and implement classloader and security management on your own.
These are just a few simple words. In fact, every knowledge point/"Dissolution/" involves more knowledge points. Please understand them.