Java background interview experience sharing
A careful summary based on the personal experience of the Spring and Autumn Recruitment,
including interview questions and interview tips for major companies
Ctrip
- The difference between jvm thread and operating system thread
- What are the jvm stacks and heaps
- What might happen to oom
- How to troubleshoot oom
- When the shopping cart is not logged in in the project, where is the product information stored, cookie or session, why choose cooike instead of session
- Choose product color or package, how to design the table, sku problem
The interview experience is not very good, the interviewer keeps asking you what you don’t understand, and you are not fully prepared
Huawei
- Receiving is in restful form or url body form
- Linux Inotify mechanism in the project
- Fuzzy query
- How to build the server
- Mathematical Modeling Contest on Resume
- Cloud service, cloud computing foundation
- Is there an actual project manager
Huawei's interviews have always been very random, and the content on the resume has been prepared solidly, especially the projects done by the laboratory, the competitions that they participated in, and the papers sent to the interviewers. Don't be too active.
where to
- HTTP related knowledge
- Linux commands, pipes
- Database index, composite index and cluster index
- Is Redis single threaded?
- What are the concurrent packages, what is CountDownLatch, and in what scenarios?
- Handwriting deformation binary search, tree mirroring
Two sides technical side, one side hr side, I only remember part of the test questions, relatively simple, the first offer in life, thank you~
Xiaomi (one and two sides)
- Hand tear fast row
- Shredded non-recursive preorder traversal
- Hand tear Pow realization
- Hand tear number n all arranged
- Which parts of the Redis source code have been seen, and how to do master-slave replication
- Java memory model
- The put process of hashMap, how to initialize it, and how to deal with the null value in the first put entry
- Some characteristics of treeMap and linkedHashMap
- Which synchronous collections, the realization of concurrentHashMap
- The difference between the implementation of the blocking queue ArrayListBlockingQueue and LinkedListBlockQueue
- The role of each module of Java memory
- Mysql underlying implementation and composite index
For the mastery of the underlying principles, you need to study the source code in depth, and compare and summarize similar data structures
NetEase Hangzhou Research
one side:
- HashMap, red-black tree linked list query time complexity, is thread safe, how to thread safe
- What does concurrentHashMap lock,
- The role of ThreadLocal, what is the internal implementation, and what is stored in the key value
- Singleton mode, double detection of hungry man, lazy man ddl, volatile function: prevent instruction retake
- Session sharing issues in the project, if another server is added, hash consistency issues?
- How to solve the problem of cache and database consistency
- Mysql isolation level, what is phantom reading, can it be solved? Solved by gap lock
- What are the database engines, differences and application scenarios
- Mysql query is very slow, how to troubleshoot slow query, slow_query_log
- Adding the index is still very slow, how to troubleshoot the
second side: - Linux view port is called by the process
- Epoll related
- Dubbo newsletter
- Adding the cache is still very slow, how to troubleshoot
- High concurrency, how to preprocess and protect multiple connections
- A function uses the rpc call of each module to find out the reason for the slowness
Investigate basic knowledge points on one side, and mostly scene questions on the other side, and finally got the offer.
Meituan
one side:
- A large number of URL crawlers, store the crawled pages, how to deal with it
- How to calculate hashcode and hash value in Hashmap
- Redis cluster structure, redis solves the problem of session sharing, how to deal with if a new server is added
- Redis persistence in two ways, with their own characteristics
- Database operation deletes the same row of data, the principle of the leftmost prefix
- Ways to implement threads
- Understanding of thread safety
- Java memory model
- Algorithms 1, 2, 5, and 10 use at least one to form a number, requiring the least number
- MVCC
- High concurrency system design ideas, refer to concurrentHashMap
- Database performance
Two sides: - Hand tear judgment balance search tree
- The principle of the leftmost prefix of the database
- Garbage collection
- How to design the data table
Three sides: - Is it business or technology
- The project encountered impressive problems and technology precipitation. What have you learned through the project? What are the shortcomings?
- What books have you read
- Impressive in high-performance Mysql, redundancy and third normal form, insert a column of data in the table, at this time the database can not be stopped, how to deal with
- Web page performance is slow, how to troubleshoot, how to improve
- Why does the app react slower in foreign countries than in China, and analyze the possible reasons
- AB bucket, 50 red balls, 50 white balls, how to put the ball to touch two buckets randomly, the probability of touching the red ball is high, how to prove the mathematical problem
- arr[3,5,8,1,-20,9,4,-10], the difference between arr[i]-arr[j] is the largest (simple dynamic programming)
- Career planning, domain expert? The architect? Project management?
- How to plan the progress of the project
- What source code have you seen?
Investigate basic knowledge points on one or two sides, and on three sides mainly examine the breadth of knowledge and career planning. The interviewer is very patient, has a good experience, and is lucky to get an offer.
summary:
The above is the experience from spring recruitment to autumn recruitment. I think that I can understand all the above questions, and the interview is basically no problem.
Spring recruits are very important for finding jobs in autumn recruits. When you have internship experience and project experience from a big factory, the resume of autumn recruits is easier to pass, and if you have decent project experience, it will be easier in the interview. Get the favor of the interviewer.
Even if there is no chance to participate in the summer internship, it is best to participate in the spring recruitment to better exercise yourself. Precisely because of the experience of spring recruits, I feel that I haven't been so nervous in the autumn recruits.
Reader benefits
Thank you for seeing here!
I have compiled a lot of 2021 latest Java interview questions (including answers) and Java study notes here, as shown below
The answers to the above interview questions are organized into document notes. As well as interviews also compiled some information on some of the manufacturers & interview Zhenti latest 2021 collection (both documenting a small portion of the screenshot) free for everyone to share, in need can click to enter signal: CSDN! Free to share~
If you like this article, please forward it and like it.
Remember to follow me!