Key knowledge points for Java

Source: Internet
Author: User

To be a Java master, you should at least be very familiar with and be able to apply the following points of knowledge freely:

Serialization:

Is all object depth clone, object storage and recovery, the object's remote invocation of the foundation, that is, it is the object pooling management, the basis of distributed reference, think of the Java EE platform if it does not rely on what it can do?

RTTI:

Is the basis of all encapsulation, without it, interface, abstract class, the parent class has no meaning, if the encapsulation is not, there is no parent class, subclasses are not called subclasses.

CALLBACK:

Callback first is based on multithreading, no thread calls do not talk about callbacks. The subclass calls the constructor of the parent class called back, and any constructed object of the TMD is called a callback, because any object inherits at least object, and at least the constructor of object is called when constructed.

Callback mechanism:

When one main thread manages other threads, instead of checking the state of each thread with a polling method, the main thread is notified when there is a state in the child thread, ah, someone is going to press me, ah, my value reaches 100, (the term is called triggering an event) so the main thread receives these messages and then invokes the corresponding method based on the message type

An example, I (main thread) to Beijing, when the car to Beijing, I want to call "get off" this method, if not back to call mechanism, I want to constantly ask driver, to have no ah? If I ask more than three times and that driver strength is bigger than me, he must hit me, if you use back call mechanism, is to use a sub-thread (can let driver assume this role) to run, when the time to notify me, I will call "get Off ()", and do not have to ask once, so I can save time to sleep or chat with the car's Meimei.

Reflection:

Is the runtime thing, the completion of class loading, class analysis, bean introspection and other functions, JBuilder why hit a class name after the list of its member variables and methods for you to choose? If you want to know how many times an object has been called, what method do you use? This knowledge allows you to analyze the cause of the error from a single line of exception, as well as your own implementation of ClassLoader, security management and other aspects of the work.

These are just from the simple aspect, in fact, each knowledge point \ "Dissolve" should involve more knowledge points, we understand it well.


Key knowledge points for Java

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.