2020: Java interview must-see 1,000 interview analysis to help you pass the interview

Foreword:

This article has collected and sorted out N common interview questions from major factories. Here are the content you want: Java, MyBatis, ZooKeeper, Dubbo, Elasticsearch, Memcached, Redis, MySQL, Spring, Spring Boot, Spring Cloud, RabbitMQ, Kafka , Linux and other technology stacks, I hope everyone can find a company that suits them and have a happy code.

table of Contents:

Due to the large number of questions and space limitations, the interview questions in the article are not all accompanied by detailed analysis, but they have been compiled into a detailed PDF file to share with everyone, friends who need it, forward it + private message me (interview) to get Free collection method

2020 Preparatory Spring Recruitment: 1,000 interview analysis must-see in Java interviews to help you pass the interview

 

Looking at the interview questions can be for the interview, or it can be a way to check and fill in the vacancies of what you have learned, to gain a deeper understanding of some core knowledge points

2020 Preparatory Spring Recruitment: 1,000 interview analysis must-see in Java interviews to help you pass the interview

 

MyBatis interview questions

  • 1. What is Mybatis?
  • 2. The advantages of Mybaits:
  • 3. Disadvantages of MyBatis framework:
  • 4. Applicable occasions of MyBatis framework:
  • 5. What is the difference between MyBatis and Hibernate?
  • 6. What is the difference between #{} and ${}?
  • 7. What should I do when the attribute name in the entity class is different from the field name in the table?
  • 8. How to write like statement in fuzzy query?

Type 1: Add sql wildcard in Java code.

string wildcardname = “%smi%”;

list<name> names = mapper.selectlike(wildcardname);

<select id=”selectlike”>

select * from foo where bar like #{value}

</select>

................... There are
27 interview questions in MyBatis, the content is too much, the article is as concise as possible, and the entire document is required to privately write me (interview) to get free collection

2020 Preparatory Spring Recruitment: 1,000 interview analysis must-see in Java interviews to help you pass the interview

 

ZooKeeper interview questions

ZooKeeper is an open source distributed coordination service, created by Yahoo, and is an open source implementation of Google Chubby. Distributed applications can implement data publishing/subscription, load balancing, naming services, distributed coordination/notification, cluster management, Master election, configuration maintenance, name services, distributed synchronization, distributed locks, and distributed queues based on ZooKeeper. Features.

  • The difference between zookeeper load balancing and nginx load balancing
  • Zookeeper Watcher mechanism-data change notification
  • Client registration Watcher implementation
  • How does zookeeper ensure the sequential consistency of transactions?
  • Is Zookeeper's watch monitoring notification to the node permanent? Why is it not permanent?
  • How to deal with zk node downtime?

Zookeeper itself is also a cluster, and it is recommended to configure no less than 3 servers. Zookeeper itself must also ensure that when one node goes down, other nodes will continue to provide services. If one follower goes down, there are still 2 servers to provide access, because the data on Zookeeper has multiple copies, and the data will not be lost; if one leader goes down, Zookeeper will elect a new leader. The mechanism of the ZK cluster is that as long as more than half of the nodes are normal, the cluster can provide services normally. Only when the ZK node hangs too much and only half or less than half of the nodes can work, the cluster fails. Therefore, a cluster of 3 nodes can suspend 1 node (the leader can get 2 votes>1.5) a cluster of 2 nodes cannot suspend any node (the leader can get 1 vote<=1)

..........

2020 Preparatory Spring Recruitment: 1,000 interview analysis must-see in Java interviews to help you pass the interview

 


Dubbo interview questions

Spring Eureka changed from open source to closed source, Consul is on the rise, and Dubbo is starting to update again. There are still many companies in the market that use dubbo and we need to continue to learn.

  • Why use Dubbo?
  • What communication framework is used by default, are there other options?
  • Is the service call blocking?
  • What registry is generally used? Are there other options?
  • What serialization framework is used by default, and what else do you know?
  • What are the layers of Dubbo's overall architecture design?

2020 Preparatory Spring Recruitment: 1,000 interview analysis must-see in Java interviews to help you pass the interview

 

...............

2020 Preparatory Spring Recruitment: 1,000 interview analysis must-see in Java interviews to help you pass the interview

 

Elasticsearch interview questions

  • How much does elasticsearch know, talk about your company's es cluster architecture, index data size, number of shards, and some tuning methods.
  • What to do if there is too much data in elasticsearch index, how to tune and deploy
  • How elasticsearch implements master election
  • When Elasticsearch is deployed, what are the optimization methods for Linux settings
  • Describe in detail the process of Elasticsearch updating and deleting documents.
  • When Elasticsearch is deployed, what are the optimization methods for Linux settings?

...........

2020 Preparatory Spring Recruitment: 1,000 interview analysis must-see in Java interviews to help you pass the interview

 

Redis interview questions

With the continuous maturity of application research and development technology, Redis caching technology has become one of the necessary capabilities for background research and development students. In the interview process of many companies, it is essential to examine the mastery of Redis knowledge points.

  • What are the benefits of using Redis?
  • Is Redis single-process single-threaded?
  • What is the persistence mechanism of Redis? Their advantages and disadvantages?
  • Redis common abnormal problems and solutions (avalanche, penetration...)
  • Redis expired key deletion strategy?
  • Why does redis need to put all data in memory?
  • What is the master-slave replication model of Redis cluster?
  • How to set the expiration time and permanent validity of Redis key?

.......... The
content is too much, the article is as concise as possible, and you need a private letter (interview) of the entire document to get a free way to receive it

2020 Preparatory Spring Recruitment: 1,000 interview analysis must-see in Java interviews to help you pass the interview

 

MySQL interview questions

Nowadays, the Internet industry uses MySQL the most. However, for advanced Web interviewers, especially for job seekers looking for a job under 30k, many MySQL-related knowledge points will be basically involved. If during the interview, your relevant knowledge answers are vague and irrelevant. Basically, most interviewers from better companies are basically not interested in you. After all, a slightly larger project will eventually let you go deep into the database, and most of the final bottlenecks will first appear in the database.

  • MySQL related storage engine.
  • The principle of MySQL index implementation.
  • MySQL database lock.
  • MySQL SQL tuning.
  • MySQL sub-table sub-database global ID.

...............

2020 Preparatory Spring Recruitment: 1,000 interview analysis must-see in Java interviews to help you pass the interview

 

Java concurrent programming

  • What is the difference between daemon thread and local thread in java?
  • What is context switching in multithreading?
  • What is the thread scheduling algorithm used in Java?
  • What is a thread group, and why is it not recommended in Java?
  • What is the difference between Executor and Executors in Java?
  • Three elements of concurrent programming?
  • What is a thread pool? What are the ways to create it?

......... The
content is too much, the article is as concise as possible, you need a private letter of the entire document (interview) to get a free way

2020 Preparatory Spring Recruitment: 1,000 interview analysis must-see in Java interviews to help you pass the interview

 

Spring interview questions

  • 1. Talk about your understanding of Spring IoC?
  • 2. Talk about your understanding of Spring DI?
  • 3. What is the difference between the BeanFactory interface and the ApplicationContext interface?
  • 4. Please introduce the core classes of Spring that you are familiar with, and explain what they do?
  • 5. Introduce your understanding of Spring's affairs?
  • 6. Tell me about Spring's transaction implementation?
  • 7. What is Spring's dependency injection?

..........

2020 Preparatory Spring Recruitment: 1,000 interview analysis must-see in Java interviews to help you pass the interview

 

Kafka interview questions

  • There are three key differences between Kafka and traditional MQ messaging systems
  • Talk about the three mechanisms of Kafka's ack
  • Consumer failure, how to solve the livelock problem?
  • How to ensure the sequential consumption of messages in the case of Kafka distributed (not stand-alone)
  • How does Kafka not consume duplicate data? For example, deductions, we can't repeat deductions.

....

2020 Preparatory Spring Recruitment: 1,000 interview analysis must-see in Java interviews to help you pass the interview

 

Reader benefits

Due to the large number of questions and space limitations, all the interview questions in the article are not accompanied by detailed analysis. I hope that all colleagues will understand
but have compiled a detailed PDF document for you to share

Receiving method: Like + follow, add assistant VX: mxx2020666, you can claim it for free

Guess you like

Origin blog.csdn.net/m0_46995061/article/details/109330798