BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.

Foreword

This article collects and organizes N common interview questions from major manufacturers. Everything you want is covered here: 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 happy to open the code.

table of Contents

Due to the large number of questions and the limitation of space, all the interview questions in the article are not accompanied by detailed analysis, but they are compiled into a detailed PDF document that can be shared with everyone.

BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.

MyBatis
interview questions (intercept part) 1. What is Mybatis?

2. The advantages of Mybaits

3. Disadvantages of the 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 if the attribute name in the entity class is different from the field name in the table?

8. How to write fuzzy query like statement?

9. Usually an Xml mapping file will write a Dao interface corresponding to it. Excuse me, what is the working principle of this Dao interface? Can the methods in the Dao interface be overloaded when the parameters are different?

10. How does Mybatis perform paging? What is the principle of paging plugin?

11. How does Mybatis encapsulate the SQL execution result as the target object and return it? What are the mapping forms?

12. How to perform batch insertion?

13. How to get the automatically generated (primary) key value?

14. How to pass multiple parameters in mapper?

15. What is the use of Mybatis dynamic sql? Implementation principle? What are the dynamic sql?

16. In the Xml mapping file, in addition to the common select | insert | updae | delete tags, what other tags are there?

18. Why is Mybatis a semi-automatic ORM mapping tool? What is the difference between it and fully automatic?

19. One-to-one and one-to-many related queries?

20. How do MyBatis implement one-to-one? How to do it?
BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.

ZooKeeper Interview Questions (Interception Part)

  1. ZooKeeper interview questions?

  2. What does ZooKeeper offer?

  3. Zookeeper file system

  4. ZAB agreement?

  5. Four types of data nodes Znode

  6. Zookeeper Watcher mechanism-data change notification

  7. Client registration Watcher implementation

  8. The server handles Watcher implementation

  9. Client callback callback

10. ACL permission control mechanism

BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.

Dubbo Interview Questions (Interception Part)
1. Why use Dubbo?

2. What are the layers of Dubbo's overall architecture design?

3. What communication framework is used by default, and are there other options?

4. Is the service call blocked?

5. What registration centers are generally used? Are there other options?

6. What serialization framework is used by default, and what else do you know?

7. What is the principle that service providers can achieve failure kick-out?

8. How does the service go online not affect the old version?

9. How to solve the problem of long service invocation chain?

10. What are the core configurations?
BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.


Elasticsearch interview questions (intercept part)

1. How much does Elasticsearch know, talk about your company's es cluster architecture, index data size, how many shards there are, and some tuning methods

2. What is the inverted index of elasticsearch

3. What to do when there is more index data in elasticsearch, how to tune and deploy

4. How does elasticsearch achieve master election

5. Describe in detail the process of Elasticsearch indexing documents

6. Describe in detail the process of Elasticsearch search?

7. What are the optimization methods for Linux settings when Elasticsearch is deployed?

8. What is the internal structure of lucence?

9. How does Elasticsearch achieve Master election?

10. The nodes in Elasticsearch (for example, a total of 20), 10 of which choose a master, and the other 10 choose another master, what should I do?
BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.

Memcached Interview Questions (Interception Part)
1. What is Memcached and what does it do?

2. How to implement Memcached service distributed cluster?

3. What are the characteristics and working principle of Memcached service?

4. Briefly describe the principle of Memcached memory management mechanism?

5. How does memcached work?

6. What is the biggest advantage of memcached?

7, memcached and MySQL query

8. What are the advantages and disadvantages of memcached compared to the server's local cache (such as PHP's APC, mmap files, etc.)?

9. What is the cache mechanism of memcached?

10. How does memcached implement the redundancy mechanism?
BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.

Redis Interview Questions (Interception Part)
1. What is Redis?

2. The data type of Redis?

3. What are the benefits of using Redis?

4. What are the advantages of Redis compared to Memcached?

5. What are the differences between Memcache and Redis?

6. Is Redis single-process and single-threaded?

7. What is the maximum capacity that a string type value can store?

8. What is Redis's persistence mechanism? Their respective advantages and disadvantages?

9. Common performance problems and solutions of Redis:

10. How to delete redis expired key?

BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.

MySQL interview questions (interception part)
1. What kinds of locks are there in MySQL?

2. What are the different tables in MySQL?

3. Briefly describe the difference between MyISAM and InnoDB in the MySQL database

4. The names of the four transaction isolation levels supported by InnoDB in MySQL, and the difference between levels?

5. What is the difference between CHAR and VARCHAR?

6. What is the difference between primary key and candidate key?

7. What is myisamchk used for?

8. If a table has a column defined as TIMESTAMP, what will happen?

9. How do you see all the indexes defined for the table?

10. What do the% and _ in the LIKE statement mean?

BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.

Concurrent programming in Java (intercept part)
1. What is the difference between a daemon thread and a local thread in java?

2. What is the difference between threads and processes?

3. What is context switching in multithreading?

4. The difference between deadlock and livelock, and the difference between deadlock and hunger?

5. What is the thread scheduling algorithm used in Java?

6. What is a thread group and why is it not recommended in Java?

7. Why use Executor framework?

8. What is the difference between Executor and Executors in Java?

9. How to find which thread uses the longest CPU time on Windows and Linux?

10. What is atomic operation? What are the atomic classes in the Java Concurrency API?
BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.

Partial answer reference

BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.
BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.
BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.

After reading the above content, I believe that you have a clear goal and direction. The next step is to find learning materials. We have prepared a set of architects ’learning kits for everyone ’s reference. The contents of the learning kit and The method of receiving is as follows:
free way of receiving materials-Q skirt: 668470172 or VX: 13272413561

BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.BATJ Java (1000 questions) high frequency interview questions: MyBatis + concurrent programming + distributed + redis, etc.

Free way of receiving information:

Free way of receiving materials-Q skirt: 668470172 or VX: 13272413561

While young, work hard! !

Guess you like

Origin blog.51cto.com/14587687/2487711