preface

Many Internet companies are independent technical interview links, I believe there are many development students are kneeling here, the usual development is CURD and framework, but to the technical interview is a variety of source code, various implementations of the root. Here’s a quick rundown of common questions.

The main content

The individual feels Java technology stack is relatively easy to grasp, though the content is more, but probably can be divided into basic knowledge, and the two pieces of open-source software, in fact also have algorithm and design patterns related content, but mostly in basic knowledge and open source software, take an examination of the red-black tree alone or B + tree is relatively small, is indeed have a more (abroad), This needs to be known in advance.

Java Basics

1. Understand the Java memory model? Talk about composition. 2. What is the Java class loading mechanism? If there is a subclass that inherits from a parent class, whose classloader is loaded? 3. Implementation mechanism of HashMap and the difference between HashMap and ConcurrentHashMap? What do you need to be aware of when implementing your own hash table, extension factor + hash collision? ConcurrentHashMap features linked lists and thread safety as well as synchronization mechanisms. 4. Problems related to synchronization, how to use the synchronized keyword, static synchronized method will lock the object or the whole class? The difference between synchronized and volatile? Why synchronized and lock? 5.GC algorithm, tag clearing sorting algorithm, G1 and other garbage collector mechanism 6. Thread pool parameters? The meaning of each?

Open source software

1. Related to redis, how to implement key like? How to realize distributed lock 2. Es understand? Do you know the Lucene engine? 3. Zookeeper? 4. Spark? 4. 5. Smart refrigerator 6. Why zuul with Nginx? 7. Familiar with Springcloud? What are the circuit breakers and what design patterns are used?

Write in the last

Actually good interview questions are mostly choose according to the actual situation of the interviewer, according to the interview person familiar with the layer again, personal understanding enterprise hiring come in is not need a code monkey, but the people who need to solve the problem, which people pay more attention to the way of thinking and attitude to solve the problem, rather than just knowledge. In fact, usual accumulation is the most effective preparation, to avoid by all means triviality and low ambition.