The latest 32W-word Java engineer interview questions, it is enough for a big factory interview

foreword

The competition in the Internet industry is becoming more and more severe, and interviews are becoming more and more difficult. Many fans also privately asked me if I have a comprehensive set of interview questions.

This set of interview questions for Internet Java engineers includes: MyBatis, ZK, Dubbo, EL, Redis, MySQL, concurrent programming, Java interview, Spring, microservices, Linux, Springboot, SpringCloud, MQ, Kafka interview topics (485 pages in total, 32W words)

Due to space limitations, only interview questions can be shown

MyBatis Interview

  1. What is Mybatis?
  2. 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 should I do when the attribute name in the entity class is different from the field name in the table?
  8. How to write fuzzy query like words?
  9. Usually an Xml mapping file will write a Dao interface corresponding to it. Excuse me, the working principle of this Dao interface is tDa
  10. How does Mybatiz perform pagination? What is the principle of the paging plugin?
  11. How does Mybati s encapsulate the execution result of sq into the target object and what are the mapping forms returned?
  12. How to perform batch insert?
  13. How to get the automatically generated (primary) key value? 14. How to pass multiple parameters in mapper?
  14. What is the use of Mybatis dynamic sql? Execution principle? What kind of dynamic sql are there?
  15. In the Xm1 mapping file, in addition to the common select |insert lupdae |delete tags, there are
  16. Why is Mybati z a semi-automatic ORM mapping tool? What is the difference between it and fully automatic?
  17. ——to—,—to-many association query
  18. MyBati s implementation - yes - there are several ways? How does it work?
  19. MyBatiz implementation - there are several ways to many, how to operate?
  20. Does Mybatiz support lazy loading? If yes, what is its implementation principle?
  21. The first and second level caches of Mybati s:
  22. What is the interface binding of MyBati s? What are the implementation methods?
  23. What are the requirements when using the mapper interface of MyBatis?
  24. What are the ways to write Mapper?
  25. Briefly describe the operating principle of Mybati s plug-ins and how to compile

Zookeeper Interview

  1. ZooKeeper interview questions?
  2. What does ZooKeeper provide?
  3. Zookeeper file system
  4. ZAB protocol?
  5. Four types of data node Znode
  6. Zookeeper "atcher mechanism--data change notification
  7. Client registration watcher implementation
  8. Server-side processing watcher implementation
  9. client callback atcher
  10. ACL permission control mechanism
  11. Chroot Features
  12. session management
  13. server role
  14. Server working status under Zookeeper
  15. data synchronization
  16. How does zookeeper ensure the sequential consistency of transactions?
  17. Why is there a Master in a distributed cluster? 16. How to deal with zk node downtime?
  18. The difference between zookeeper load balancing and nginx load balancing
  19. What are the deployment modes of Zookeeper?
  20. How many machines are required for the cluster at least, and what are the cluster rules?
  21. Does the cluster support adding machines dynamically?
  22. Is Zookeeper's watch notification to the node permanent? Why is it not permanent?
  23. What are Zookeeper's java clients?
  24. What is chubby, what do you think compared with zookeeper?
  25. Talk about a few commonly used zookeeper commands.
  26. The connection and difference between ZAE and F axos algorithm?
  27. Typical application scenarios of Zookeeper

Dubbo Interview

  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. Are service calls blocking?
  5. What registry is 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 the service provider can realize the invalidation? How can the old version not be affected when the service goes online?
  8. How to solve the problem of too long service call chain? 10. What are the core configurations?
  9. What protocol does Dubbo recommend?
  10. Can I directly connect to a certain service when there are multiple registrations for the same service?
  11. Draw-draw the flowchart of service registration and discovery?
  12. How many solutions are there for Dubbo cluster fault tolerance?
  13. Dubb. Service downgrade, how to do retry on failure?
  14. Dubb. What problems did you encounter during use?
  15. Dubbo Monitor implementation principle?
  16. What design patterns does Dubbo use?
  17. How is the Dubbo configuration file loaded into Spring?
  18. What is the difference between Dubbo SPI and Java SPI?
  19. Dubb. Does it support distributed transactions?
  20. Can Dubbo cache the results?
  21. How is the service compatible with the old version?
  22. What are the packages that Dubbo must depend on?
  23. What can Dubbo telnet command do?
  24. Does Dubbo support service downgrade?
  25. How does Dubbo shut down gracefully?
  26. Difference between Dubbo and Dubbox?
  27. The difference between Dubbo and Spring Cloud? Do you know other distributed frameworks?

Redis Interview

  1. What is Redis?
  2. Redis data type?
  3. What are the benefits of using Redis?
  4. What are the advantages of Rediz over Memcached?
  5. What are the differences between Memcache and Redis?
  6. Is Redis single-process or single-threaded?
  7. What is the maximum capacity that a value of type string can store?
  8. What is the persistence mechanism of Redis? What are the advantages and disadvantages of each?
  9. Redis common performance problems and solutions: 10. Redis expired key deletion strategy?
  10. Redis recycling strategy (elimination strategy>?
  11. Why does ediz need to put all the data in memory? 13. Do you understand the synchronization mechanism of Rediz?
  12. What are the benefits of Fipeline, why use pipeline?
  13. Have you ever used Redi z cluster, what is the principle of the cluster?
  14. Under what circumstances will the Redis cluster solution cause the entire cluster to be unavailable?
  15. What are the Java clients supported by Redis? Which one is officially recommended?
  16. What are the advantages and disadvantages of Jedi z compared with Redisson? 19. How to set password and verify password for Redis? 20. Talk about the concept of Redis hash slot:?
  17. What is the master-slave replication model of the Redi z cluster? 22. Will some operations be lost in the Redi = cluster? Why? 23. How are Redi z clusters replicated?
  18. What is the maximum number of nodes in the Rediz cluster? 25. How to choose a database for the Redis cluster? 26. How to test the connectivity of Redis? 27. How to understand Rediz transactions?
  19. What are the commands related to Rediz transactions?
  20. How to set the expiration time and permanent validity of Redis key?
  21. How does Redis do memory optimization?
  22. How does the Redis recycling process work?
  23. What are the ways to reduce the memory usage of Redis?
  24. What happens when Redis runs out of memory?
  25. — How many keys can a Redis instance store at most? List, set and Sorted set can store at most
  26. MySQL. There are 2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 instances
  27. What scenario is Redis most suitable for?
  28. There are 100 million keys in Rediz, of which 10w keys start with a fixed known prefix. If it is
  29. If there are a large number of keys that need to be set to expire at the same time, what do you generally need to pay attention to?
  30. I have used Rediz as an asynchronous queue network. Mei Jingfu has a ?key, and there are 10w ke. fixed known prefixes.
  31. Having used Redis distributed lock master is a needle art Shangshixue”

MySQL Interview

  1. What kinds of locks are there in MySQL?
  2. What are the different tables in MySQL?
  3. Briefly describe the difference between MySAM and InnoDB in the MySQI database
  4. The names of the four transaction isolation levels supported by InnoDB in MysQL, and the differences between them step by step?
  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. What happens if a table has a column defined as TIMESTAMP?
  9. How do you see all the indexes defined for the table?
  10. What do the % and _ in the LTRE statement mean?
  11. What is the column comparison operator?
  12. What is the difference between BLDE and TEXT?
  13. What is the difference between MysQL_fetch_array and MySQL_fetch_object?
  14. Where will MyISAM tables be stored, and also in what format are they stored?
  15. How does MySQI optimize DISTIHCT?
  16. How to display the first 50 lines?
  17. How many columns can be used to create an index?
  18. What is the difference between Now() and CURRERT_DATE()?
  19. What is a non-standard string type?
  20. What is the universal sQI function?
  21. Does MySQL support transactions?
  22. What field type is good for recording currency in MysQL
  23. What are the tables related to permissions in MySQL?
  24. What can be the string type of the column?
  25. The MySQI teaching database is used as the storage of the publishing system, and more than 50,000 entries per day are added. It is expected to be operated and maintained for three years.
  26. lock optimization strategy
  27. The underlying implementation principle and optimization of the index
  28. Under what circumstances is the index set but not available
  29. How to optimize MysQL in practice
  30. How to optimize your database
  31. Briefly describe the impact of the difference between indexes, primary keys, unique indexes and joint indexes on the performance of the database in MySQL.
  32. What is a transaction in a database?
  33. What Causes SQL Injection Vulnerabilities? How to Prevent?
  34. Select the appropriate data type for the fields in the table
  35. storage period
  36. For relational databases, index is a very important concept, please answer a few questions about index:
  37. Explain the difference between MySQL outer join, inner join and self join
  38. Overview of transaction rollback mechanism in Myql
  39. What parts does the SQL language include? What are the key operations in each part?
  40. What are integrity constraints?
  41. What is a lock?
  42. What is a view cursor?
  43. What is a stored procedure? What is used to call it?
  44. How to understand the three paradigms in a popular way?
  45. What is a base table? What is a view?
  46. i try to describe the advantages of the view?
  47. What does HUI.L mean?
  48. The difference between primary key, foreign key and index
  49. What can you use to ensure that a field in a form only accepts values ​​within a certain range?
  50. What are the methods for optimizing SQL statements? "Choose a few)

Java Concurrent Programming

  1. What are the three elements of concurrent programming?
  2. What are the ways to achieve visibility?
  3. The value of multithreading?
  4. What are the ways to create threads?
  5. Comparison of the three ways of creating threads?
  6. Thread state flow diagram
  7. Java threads have five basic states
  8. What is a thread pool? How many ways are there to create it?
  9. Creation of four thread pools
  10. Advantages of thread pool?
  11. What are the commonly used concurrent I tool classes?
  12. The difference between Cycli cBarr i er and CountDownLatch
  13. What is the function of synchro oni zed?
  14. The role of the volatile keyword
  15. What is CAS
  16. The problem with CAS
  17. What is Future?
  18. What is AQS
  19. A0S supports two synchronization methods:
  20. What is ReadYri teLock
  21. What is FutuwreTask
  22. The difference between synchro oni ze d and Reentr antLoc
  23. What are optimistic locks and pessimistic locks
  24. How does thread B know that thread A has modified the variables?
  25. syn.chroni zed, volatile, CAS comparison
  26. What is the difference between the sleep method and the wait method?
  27. What is ThreadLoca1? What is it for?
  28. Why wait 0 method and noti fy 0/noti fyAll(
  29. method to be called in a synchronized block
  30. What are the methods of multi-thread synchronization?
  31. Thread Scheduling Policy
  32. What is the concurrency of Concurr entHashMap
  33. How to Find Which Thread Uses the Most CPU in the Linux Environment
  34. Java deadlock and how to avoid it?
  35. cause of deadlock
  36. How to wake up a blocked thread
  37. How do immutable objects help with multithreading
  38. What is multithreaded context switching
  39. What happens if the thread pool queue is full when you submit the task
  40. What is the thread scheduling algorithm used in Java
  41. What are Thread Scheduler and Time Slicing?
  42. What is a spin lock
  43. What is the Lock interface (Locker face) in the Java Concurrency API
  44. Singleton thread safety
  45. What does a Semaphore do?
  46. What is the Executor class?
  47. The construction method of the thread class and which thread the static block is used by
  48. Synchronized method or synchronized block, which is better choice?
  49. What exceptions will be caused by too many Java threads?

Spring Interview

  1. What is spring?
  2. What are the benefits of using the Spring framework?
  3. What modules does Spri ne consist of?
  4. The core container (application context) module.
  5. BeanFactory- BeanFactory implementation example.
  6. XMLBeanF actory
  7. Explain the AOP module
  8. Explain the JBC abstraction and DAD module.
  9. Explain the Object/Relational Mapping integration module.
  10. Explain the WEB module.
  11. Sprinr configuration file
  12. What is Spring IOC container?
  13. What are the advantages of IOCs?
  14. What is the usual implementation of Appli cati onContext?
  15. What is the difference between Bean factories and Application contexts?
  16. What does a Spline application look like? Dependency Injection
  17. What is Dependency Injection in Sprine?
  18. What are the different types of I0C (Dependency Injection) approaches?
  19. Which dependency injection approach do you recommend, constructor injection or setter method injection?
  20. What are Spring beans?
  21. What does a Spring Bean definition contain?
  22. How to provide configuration metadata to the Spring container?
  23. How do you define the scope of a class?
  24. Explain the scope of several beans supported by Spring.
  25. Are singleton beans in the Spring framework thread-safe?
  26. Explain the bean life cycle in the Spring framework.
  27. Which are the important bean lifecycle methods? Can you override them?
  28. What is the inner bean of Spri ne?
  29. How to inject a java collection in Spring?
  30. What is bean wiring?
  31. What is bean autowiring?
  32. Explain the different ways of autowiring.
  33. What are the limitations of autowiring?
  34. Can you inject a nu11 and an empty string in Spring?
  35. What is the Java-based Sprine main solution configuration? Give some examples of annotations.
  36. What is annotation-based container configuration?
  37. How to enable annotation assembly?
  38. @Required annotation
  39. @Autowired annotation
  40. @Qualifier annotation
  41. How to use JDBC more effectively in Spring framework?
  42. JdbeTemplate
  43. Spring support for DA0
  44. How to use Spring to access Hibernate?
  45. 0RM supported by Spring
  46. How to combine Spring and Hibernate through HibernateDaoSupport?
  47. Types of transaction management supported by Spring
  48. What are the advantages of transaction management in the Spring framework?
  49. Which type of transaction management do you prefer?
  50. Explain AOP
  51. Aspect section
  52. In Spring AOP, what is the difference between concerns and crosscutting concerns?
  53. Junction
  54. notify
  55. Cut-off point
  56. What is import?
  57. What is a target audience?
  58. What is a proxy?
  59. How many different types of automated proxies are there?
  60. What is weaving. What are the differences in weaving applications?
  61. Explain the aspect implementation based on the XML Schema method.
  62. Explain annotation-based aspect implementation
  63. What is Spr ine's MYC framework?
  64. DispatcherSerlet
  65. WebApplicationContext
  66. What is a controller in the Spring MVC framework?

Kafka interview

  1. How to get a list of topic topics
  2. What is the command line for the producer and consumer?
  3. Is the consumer pushing or pulling?
  4. Talk about kafk's method of maintaining consumption status tracking
  5. Talk about master-slave synchronization**
  6. Why do we need a message system, can mysql1 not meet the demand?
  7. What is the role of Zookeeper for Kafka?
  8. What are the three types of transaction definitions for data transmission?
  9. What are the two conditions for Kafka to judge whether a node is still alive?
  10. There are three key differences between Kafka and traditional server messaging systems
  11. Talk about the three mechanisms of kafks ac
  12. Consumer failure, how to solve the livelock problem?
  13. How to control the location of consumption
  14. In the case of kafka distributed (not stand-alone), how to ensure the sequential consumption of messages?
  15. What is the high availability mechanism of kafks?
  16. How does kafka reduce data loss
  17. How does kafka not consume duplicate data? For example, deduction, we cannot deduct it repeatedly.

Microservice Interview

  1. What do you know about microservices?
  2. What are the advantages of microservice architecture?
  3. What are the characteristics of microservices?
  4. What are the best practices for designing microservices?
  5. How does the microservices architecture work?
  6. What are the pros and cons of microservices architecture?
  7. What is the difference between monolithic, SOA and microservices architecture?
  8. What challenges do you face when using microservices architecture?
  9. What are the main differences between S0A and Microservice Architecture?
  10. What are the characteristics of microservices?
  11. What is Domain Driven Design?
  12. Why is Domain Driven Design (DDD) needed?
  13. What is ubiquitous language?
  14. What is cohesion?
  15. What is coupling?
  16. What is REST 1 RESTfu and what is it for?
  17. What do you know about Spring Boot?
  18. What is Spring Boot's Actuator?
  19. What is Spring Cloud?
  20. What problems does Spring Cloud solve?
  21. What is the use of WebMvcTest annotations in a Spring MVC application?
  22. Can you give the gist about rest and microservices?
  23. What are the different types of microservice testing?
  24. What do you know about Distributed Transaction?
  25. What is I demopotence and where is it used?
  26. What is a bounded context?
  27. What is two-factor authentication?
  28. What are the credential types for two-factor authentication?
  29. What is a client certificate?
  30. What is the use of FACT in a microservices architecture?
  31. What is 0Auth?
  32. What is Conway's Law?
  33. What do you know about contract testing?
  34. What is End-to-End Microservice Testing?
  35. What is the purpose of Container in microservices?
  36. What is DRY in microservice architecture?
  37. What is a Consumer Driven Contract (CDC)?
  38. What is the role of Web, REST ful API in microservices?
  39. What do you know about semantic monitoring in microservices architecture?
  40. How do we do cross-functional testing?
  41. How can we eliminate indeterminism in testing?
  42. What is the difference between Mock or Stub?
  43. How Much Do You Know About Mike Cohn's Testing Pyramid?
  44. What is the purpose of Docker?
  45. What is a canary release?
  46. What is Continuous Integration (CI)?
  47. What is Continuous Monitoring?
  48. What is the role of the architect in microservice architecture?
  49. Can we create state machines with microservices?
  50. What is Reactive Scaling in Microservices?

Guess you like

Origin blog.csdn.net/LBWNB_Java/article/details/129850898
Recommended