preface
Today to share with you fresh water friends three jingdong to win the Offer of the interview process, 20K still feel cabbage price, dizzy!
One side (1 hour 30 minutes)
- Class loading mechanism concept, loading steps, parent delegate mechanism, overall delegate mechanism, class loader type and inheritance relationship
- How to implement the class loader to load resources on the network file? How do I customize class loaders? Do custom loaders still comply with parental delegation? How to break the parental delegation mechanism?
- How many ways can you instantiate an object?
- The clone method of Object class extends to the difference between deep and shallow replication
- The concept, usage and practice of reflection
- Java memory model and JVM memory structure
- With a 4-core 8GB machine, how much memory should be allocated to the heap and vm stack in the JVM? (Initial value, maximum value, allocation ratio between young generation and old generation of heap, etc.)
- What is the effect of allocating too little or too much memory to young generations in the heap? Does copying cause stop-the-world?
- What parameters set memory allocation in the JVM?
- Need to share a variable in the thread scope, how to achieve? ThreadLocal source code implementation, Key weak references caused by memory leaks, how to avoid?
- The role of volatile, implementation mechanism, cache consistency implementation
- AtomicInteger atomic class function, source code implementation mechanism
- The CAS lock-free algorithm concept, the source code implementation mechanism, the Unsafe class source code extends to the corresponding C++ methods of the HotSpot virtual machine and then extends to the corresponding assembly functions
- ReentrantLock non-fair lock source implementation, AQS source implementation, why need to spin lock? Lock expansion process?
- Usage scenarios, common parameters, and rejection policies of thread pools
- Types of blocking queues, underlying data structures, and usage scenarios
- Handwriting BIO Socket programming, BIO and NIO differences
- Netty thread model, zero copy, sticky package unpacking, heartbeat mechanism, Pipeline source code
- Principles in chain of responsibility models, policy patterns, template patterns, and design patterns
- Top K problem, find tens of millions of numbers from large to small in the Top 10 numbers
- In MySQL, clustered indexes are different from sparse indexes, and more indexes are better. What fields are suitable for indexing?
- Index coverage and back table concepts, how to avoid back table?
- Why B+ trees and not AVL trees?
- The underlying implementation of a transaction
- The concept and implementation mechanism of MVCC
- Why is Redis so fast? Why not multithreading?
- Hash table query time complexity, hash conflict solution?
- The application scenario of Sorted Set, the implementation of hop table, the time complexity of query and insert?
- Dubbo application scenarios, underlying communication components, service degradation, load balancing, interface exposure, serialization methods, let you implement a simple RPC framework what would you do?
- Zookeeper application scenario, Watch mechanism, leader election algorithm, ZK distributed lock
- Symmetric encryption, asymmetric encryption, digital certificates, HTTPS connection process, SSL encryption is certain security? At what layer does SSL implement encryption?
- OSI layer 7 protocol? On which floor does the router work? At what layer do HTTP, TCP, FTP, and DNS work?
- The functions and flow of ARP
- Git operation, code conflict resolution methods
- Redis cache penetration, cache avalanche, data consistency solutions
- Elasticsearch inverted index, index and document
- RabbitMQ application scenarios, production/consumer and publish/subscribe concepts and applications, data loss issues
- Overselling solutions, MySQL optimistic lock and Redis optimistic lock
- SQL > select * from student whose course average is greater than 85;
- Algorithms: write merge sort and fast sort, analyze the time complexity, how to evaluate whether a stable sorting algorithm?
Second interview (50 minutes)
- A Hashmap and Concurrenthashmap
- Thread pool core parameters, rejection policy
- How does SynchroQueue work? How many elements can I store?
- Lock fair Lock and unfair Lock how to implement
- Tell me about AQS
- How does Lock assign a Lock to a thread?
- The life cycle of Spring beans
- Say a few words about Spring AOP
- SpringBoot boot process source code
- Netty zero copy? The heartbeat mechanism? Sticking and unpacking?
- How does ASM implement CGLIb
- What indexes does the database have? What is the difference between a clustered index and a non-clustered index? What are index overwrites and back tables? What is index push down?
- The difference between binary trees and B+ trees
- Learn about common Linux commands
- What folders are in the Linux root directory
- JVM commands
- Common parameters of jstat
- Process communication mode
- Linux thread scheduling mode
- Linux has several levels of caching
- Redis delete strategy?
- What is distributed? What is the connection between distribution and microservices? Have you heard of CAP theory? Why does CAP theory satisfy at most two functions?
- Algorithm: circular list entry
HR surface (18 minutes)
- What do you think of the difficulty of the written test?
- I see your comprehensive scores in the first few rounds are quite high. Do you want to develop in Beijing in the future?
- Like Guangzhou, Shenzhen, Hangzhou Internet companies are a lot, why the post in Beijing?
- I may be blunt. Your education background is relatively low among the candidates. What do you think is your advantage?
- Have you thought about going to graduate school? Do you think you have the ability to do these jobs in a few years?
- Why do you think you didn’t go to some of the better schools? Do you choose your major?
- How long is the internship? A comment on the first two rounds of interviewers?
conclusion
Finally, I learned that the water friend is a second undergraduate class in Guangdong province. There are no competitions and no projects, and the school has college suffixes. So far, the interviewer has not heard of the school, but finally got the offer, so I hope this water friend’s experience can help everyone, come on!
Finally, share the interview materials for free, so that you can become the next big guy!
Information to get: follow the public account below to obtain
Love programming, love to share, heard that the likes + attention are into the factory oh!!