This document is a Java interview question compiled from an Alibaba interviewer; it includes Java basics, Java collection container, Java exception, concurrent programming, JVM, Spring, Spring MVC, Spring Boot, Spring Cloud, MyBatis, Redis, MySQL database, message middle Software MQ and RabbitMQ, Dubbo, Linux, Tomcat, ZooKeeper, Netty, architecture design & distributed & data structure and algorithms, etc., are the real interview questions of major Internet companies. Fans have already won many major companies by relying on this PDF. offer.
Note : There is a document outline on the left side of each interview document, which is also specially organized for the convenience of everyone to read; the article is limited in length, so only part of the screenshots are shown here. Friends in need can [see the picture below to add a small assistant] to get this "2021 Latest Internet Major Interview Questions"
Java basic knowledge topic
Java collection container topic
- How to ensure that a collection cannot be modified?
- How to decide whether to use HashMap or TreeMap?
- What are the differences between HashMap in JDK1.7 and JDK1.8? The underlying implementation of HashMap
- Do you know the specific implementation of ConcurrentHashMap? What is the realization principle?
Java exception topic
- What is the difference between throw and throws?
- In try-catch-finally, if the catch is returned, will finally be executed?
- Don't discard the original exception when wrapping the exception
Concurrent programming topics
- The difference between as-if-serial rule and happens-before rule
- Tell me how I use the synchronized keyword, is it used in the project?
- What is the Lock interface in the Java Concurrency API? What are its advantages over synchronization?
- The understanding of optimistic lock and pessimistic lock and how to realize it, what are the ways to realize it?
- ThreadLocal memory leak solution?
- What is an atomic operation? What are the atomic classes in the Java Concurrency API?
Spring topic
- How Spring designs the container, and the relationship between BeanFactory and ApplicationContext is explained in detail
- What are the important bean life cycle methods? Can you overload them?
- Explain the different ways of autowiring, what are the ways for spring to autowiring beans?
- How to combine Spring and Hibernate through HibernateDaoSupport?
- What is the difference between focus and crosscutting focus in Spring AOP? The difference between concern and cross-cutting concern in spring aop
Spring MVC topic
- Is the controller of Spring MVC a singleton mode? If so, what is the problem and how to solve it?
- Please describe the workflow of Spring MVC? Describe the workflow of DispatcherServlet?
- What is MVC? What are the benefits of the MVC design pattern
- Which annotations of the controller in SpingMvc generally use, and are there other annotations that can be substituted?
- If in the interception request, I want to intercept the method submitted by get, how to configure
Spring Boot topic
- What is the spring boot core configuration file? What is the difference between bootstrap.properties and application.properties?
- Compare the advantages and disadvantages of Spring Security and Shiro?
- How to solve cross-domain problems in Spring Boot?
- How to disable Actuator endpoint security in Spring Boot?
- What is Swagger? Have you implemented it with Spring Boot?
Spring Cloud topic
- What is the significance of load balancing?
- What is Hystrix? How does it achieve fault tolerance?
- What is Spring Cloud Bus? Do we need it?
MyBatis topic
Redis topic
MySQL database topic
Topics on Message Middleware MQ and RabbitMQ
Dubbo topic
Linux topic
ZooKeeper topic
Netty topic
The length of the article is limited, and it is not possible to show this "2021 Latest Internet Major Interview Questions" one by one. Friends in need can [see the picture below and add a small assistant] to get this interview note !