Writing in the front
Java Fundamentals, RabbitMQ, microservices, MySQL database, Java concurrency, JVM, Redis, Design Patterns, Spring/Spring MVC And other topics of classic interview questions, and detailed analysis,The contents include:
Have a good digest, let you interview job-hopping no longer panic!
Note: this “job interview treasure book: Internet major Java senior engineer core interview 498 questions analysis” (and more learning materials), can be shared with everyone to learn together, click”498题解析+ architecture advanced learning notes obtain address”For free!
Database article
- Atomicity, consistency, Isolation, durability?
- Concurrency of transactions? Transaction isolation levels, what problems are caused by each level, which level is MySQL’s default?
- MySQL storage engine InnoDB, MyISAM, MEMORY
- MySQL MyISAM and InnoDB two storage engines in, transaction, lock level, their applicable scenarios?
- MySQL > alter table B+Tree Hash index
- SQL query statement to determine what type of index to create, how to optimize the query
- What locks (optimistic locks pessimistic locks), select how to add an exclusive lock?
- Read/write separation, master-slave replication, master-slave replication analysis of databases
- MySQL > select * from ‘MySQL’ where deadlock is determined
- MySQL High concurrency environment solution?
The Spring piece
- Principles of Spring IoC and AOP
- Spring Bean life cycle
- How does Spring Bean injection solve the problem of loop dependencies
- How to configure Spring with annotations?
- Why did Spring transactions fail
- SpringMVC flow?
- Advantages of Springmvc:
- What are the usage scenarios of Spring notification types?
- IoC Inversion of Control design principle?
- How does Spring handle thread concurrency?
The JVM article
- Java class loading process?
- Describe how the JVM loads Class files.
- Describe the Java garbage collection mechanism.
- What is a class loader, and what are class loaders?
- How do you tell if an object is alive? (or GC object determination method)
- Advantages and principles of garbage collection. Two recycling mechanisms are considered.
- What is the rationale behind the garbage collector? Can the garbage collector reclaim memory right away? Is there any way to proactively notify the virtual machine for garbage collection
- Is there a memory leak in Java? Please describe it briefly.
- Briefly describe the Java memory allocation and reclamation policy and the Minor and Major GC.
- What are the methods of garbage collection in Java?
Java concurrent post
- Has Synchronized ever been used? What’s the mechanism?
- Why is Synchronized unfair?
- Why is Synchronized a pessimistic lock? What is the implementation principle of optimistic lock? What is CAS, and it has
- Compare Synchronized and ReentrantLock in as much detail as possible.
- Talk about ReadWriteLock and StampedLock.
- How do I synchronize Java threads with each other? What synchronizers have you learned about? Please introduce them separately.
- How are threads created in a thread pool? Was it created initially with the start of the thread pool?
- When it comes to creating different thread pools by configuring different parameters, what are the default thread pools implemented in Java? Please than
- How do I submit a thread in a Java thread pool?
- Talk about what is special about volatile, and why it makes variables visible to all threads?
Redis cache article
- What are Redis transactions? How does it work?
- Please introduce the data type SortedSet (Zset) of Redis and the underlying implementation mechanism.
- What are the common commands of Redis?
- What is cache penetration? How to solve it?
- What is cache avalanche? How to solve it?
- Please describe several possible causes of Redis blocking
- How many cache update strategies are there? What are the points to pay attention to?
- Why is Redis designed to be single-threaded?
- What are the differences between Redis persistence mechanism AOF and RDB?
- What are the Redis cache invalidation policies?
The RabbitMQ article
- What are the usage scenarios for RabbitMQ?
- What are the important roles of RabbitMQ?
- What are the important components of RabbitMQ?
- How are RabbitMQ messages sent?
- How does RabbitMQ ensure message stability?
- How can RabbitMQ avoid message loss?
- What are the conditions for message persistence to succeed?
- How many broadcast types are available for RabbitMQ?
- How does RabbitMQ implement delayed message queuing?
- What happens when the only disk node in the RabbitMQ cluster crashes?
Java collection article
- Difference between an ArrayList and a Vector
- Talk about storage performance and features for ArrayList,Vector, and LinkedList
- What is the difference between fail-fast and fail-safe?
- The data structure of the HashMap.
- How does HashMap work?
- When will Hashmap be expanded?
- What’s the difference between HashSet and TreeSet?
- What is the underlying implementation of HashSet?
- How does LinkedHashMap work?
- The difference between Collections and Collections.
Micro service article
- What are the advantages of using Spring Cloud?
- What do I mean by service registration and discovery? How is Spring Cloud implemented?
- What does load balancing mean?
- What is Hystrix? How does it achieve fault tolerance?
- What is Hystrix circuit breaker? Do we need it?
- What is Netflix Feign? What are its advantages?
- What are the core configuration files for Spring Boot? What’s the difference?
- What are the core annotations for Spring Boot? Which notes are it mainly composed of?
- What is a monitor in Spring Boot?
- What is Swagger? Did you implement it with Spring Boot?
Zookeeper article
- Zk naming Service (File System)
- Zk configuration Management (file system, notification mechanism)
- Zookeeper Cluster management (file system, notification mechanism)
- Zookeeper distributed lock (file system, notification mechanism)
- The process of acquiring distributed locks
- Zookeeper queue Management (file system, notification mechanism)
- Zookeeper data replication
- Working principles of Zookeeper
- How does ZooKeeper keep the order of transactions consistent?
- Zookeeper Server running status
Solutions
- API interface security design
- Second kill system design ideas
- Distributed transaction solutions
- SSO single sign-on scheme
- Redis cache and MySQL data consistency solution
- Separate database and table design
- Cache avalanche, penetration, breakdown solutions
The last
I have compiled the answers to these questions in this Java learning note, which covers Spring, JVM, Java Basics, Java Collections, Java concurrent programming, microservices, networking, Kafka, distributed, Redis, Interview solutions, distributed transactions, design patterns, algorithms, Data structures, MySQL, etc