preface
It has been nearly two years since I graduated. Recently, I have been interviewed by Ali Group (Cainiao network, Ant Financial), netease, Didi and Dianwuda. Finally, I received offers from Dianwuda and netease. Finally, I had the honor to go to netease. However, I would like to thank the leadership and HR of Dianweda for their great care and guidance.
Interview overview
Your resume should be prepared, your contact information should be correct, clear and eye-catching, your project experience should be explained in reverse chronological order, your responsibilities in the project should be noted, and your resume template should be concise as far as possible, after all, most programmers prefer simple and clear.
Recommend boss direct hire, I feel very easy to use (not advertising).
The general overall interview process is phone -> live ->HR -> wait.
They also need to discuss it with your previous interviewers and report it to your boss. If you are not in a hurry, you may have to compare yourself with other candidates. So the fact that they ask you to go back and wait for news is definitely not a sign that you are finished.
Prepare to introduce yourself before the interview, about 1 minute can, can write on paper, the phone can read, and when you arrive at the scene of the basic also quickly recite your introduction.
Prepare a solid foundation, this is the root of everything, no strength how are useless.
During the interview, you can steer your interviewer toward what you know (I’ve met people who don’t ask what you know).
Don’t worry when it comes to design questions. The interviewer is not asking you to design a perfect architecture with a high concurrency and high availability design pattern in a few minutes. The interviewer is just asking you to see your thinking, to see how adaptable you are, and to give you some hints to see if you can adapt quickly.
Don’t rush into the interview as a communication process.
Knowledge that needs to be prepared
Here are more impression in the interview in the near future, also won’t be the branch, because there is little meaning, roughly classified records, only think of so many, but must know that these problems are just the tip of the iceberg, even if will also not how, the most important, or a solid foundation, a clear head.
Java based
HashMap source code, implementation principle, JDK8 to do HashMap optimization.
How to expand HaspMap? Why are the sizes of 2 to the NTH power?
HashMap, HashTable, ConcurrentHashMap.
Does HashTable or ConcurrentHashMap perform better in extremely high concurrency, why and how?
What are the security implications of HashMap without handling thread safety in high concurrency?
The limits of the four modifiers in Java.
A method in the Object class.
The difference between an interface and an abstract class. Note that interfaces in JDK8 can have implementations.
Two ways of dynamic proxy, and the differences.
The way Java serializes.
The difference between passing a value and passing a reference, what Java looks like, with or without passing a value reference.
If an ArrayList is deleted during the loop, is there a problem? Why?
When does the @Transactional annotation fail and why?
Data structures and algorithms
B + tree
Quicksort, heap sort, insert sort (in fact, eight sorting algorithms should understand
Consistent Hash algorithm and application of the consistent Hash algorithm
JVM
Memory structure of the JVM.
How the JVM method stack works, and how the method stack differs from the native method stack.
How JVM stack references relate to objects in the heap.
Look at escape analysis techniques.
The common algorithm of GC, the garbage collection process of CMS and G1, which two Stop the world in each stage of CMS, whether CMS will generate fragments, and the advantages of G1.
Understanding and advantages and disadvantages of tag clearing and tag collation algorithms.
Eden Survivor area ratio, why this ratio, Eden survivor work process.
How the JVM determines whether an object should be GC, and what types of objects can be considered root.
The difference between strong and weak virtual references and what the GC does to them.
Whether Java can GC direct memory.
The process of loading Java classes.
The process and advantages of parental delegation models.
Common JVM tuning parameters.
Analysis of dump files.
Does Java have an active way to trigger GC (none)?
multithreading
There are several ways to implement multithreading in Java.
Understanding Callable and Future.
What are the parameters of the thread pool, the process of creating a thread in the thread pool.
Volitile keyword function, principle.
Use of the synchronized keyword, advantages and disadvantages.
What are the implementation classes of the Lock interface and what are the usage scenarios?
Use of reentrant locking and its implementation principle, the process of copying while writing, read/write locking, and segment locking (ConcurrentHashMap segment).
Pessimistic lock, optimistic lock, advantages and disadvantages, CAS defects, how to solve.
ABC how three threads ensure sequential execution.
What are the states of threads?
The difference between “sleep” and “wait”.
The difference between notify and notifyAll.
Understanding ThreadLocal, implementation principles.
Database correlation
Common database optimization means of indexing the advantages and disadvantages of what fields to build an index database connection pool. Common configurations for durID.
Computer network
TCP and UDP are different. Three handshakes, four waves? Why four waves. Long connection and short connection. Is the connection pool suitable for long or short connections?
Design patterns
Observer pattern Proxy pattern singleton pattern, there are five ways to write, you can refer to the article singleton pattern five implementations to see which design patterns are used in Spring
Distributed correlation
Control of distributed transactions. How to design distributed locks. How to design distributed sessions. What are the components of Dubbo and what are their functions? What are the load balancing algorithms used by ZooKeeper? How Dubbo can communicate using interfaces.
Cache related
The difference between Redis and memcached What data structures redis supports. Is Redis single threaded? Is all work single threaded? How redis stores a String. Redis deployment mode, master/slave, cluster. Redis sentinel mode, how a key value is found in a Redis cluster where it is stored. Redis persistence strategy.
The framework related
How SpringMVC’s Controller matches parameters to data coming from the front end. Mybatis how to find the specified Mapper, how to complete the query. How Quartz completes timed tasks. Implementation of custom annotations. What design patterns Spring uses. What are the advantages of Spring’s IOC? How Spring maintains the beans it owns. Some of the newer things in JDK8 are new features, stream concepts and advantages, why there are such advantages. Blockchain to understand how to design double 11 transaction total panel, to achieve high concurrency and high availability
Some tips
You can go to Leetcode and brush up on it for a change. Eight sorting algorithms must be hand knocked over (fast row, heap row is especially important). Learn about emerging technologies. After the interview, the interviewer will ask you if you have any questions. Don’t be ok and don’t be silly to ask sensitive questions. Learn about the company’s products and competitive products.
Program ape interview communication community (QQ Group: 697579751)
conclusion
No matter which company it is, they are very focused on high-concurrency, high-availability technologies, they are focused on infrastructure, they are focused on JVMS. The interview is a two-way selection process, do not hold the mentality of fear to interview, is not conducive to their own play. It’s not just the salary you’re looking for, it’s whether you really like the company and whether you’re getting a real workout. In fact, I have written so much, just my own summary, not necessarily applicable to everyone, I believe that after some interviews, you will have these feelings. If these words can help you, that is the best, can not help as a record of my own. Finally, I hope everyone can find their own company, happy masturbation code