Before the gold three silver four, I painstakingly dig through 1,000 questions in the interview of senior java engineers. Is it difficult to raise the salary by 10K?

At the end of 20 years, I used my spare time to collect and organize a copy of "1000 Interview Questions for Java Senior Engineers". The original intention is also very simple. I hope that I can help you during the interview review, reduce your burden and save time.

The first draft was finalized a few days ago, the circle of friends shared a wave and received many suggestions, so I improved it again, wrote a second draft, and shared it again.

Not much nonsense, "1000 Questions for Senior Java Engineer Interview" currently covers: Java, MyBatis, ZooKeeper, Dubbo, Elasticsearch, Memcached, Redis, MySQL, Spring, Spring Boot, Spring Cloud, RabbitMQ, Kafka, Linux and other technology stacks Interview high-frequency questions + detailed answers.

"1000 questions for java senior engineer interview"

Due to the limited space, I will only show the title below, and the detailed answers have not been pasted. After all, there are 1000 channels . Friends in need, click here to get it for free!

MyBatis interview topics (27 channels)

ZooKeeper interview topics (28 channels)

Dubbo interview topics (30 sessions)

Elasticsearch interview questions (24 questions)

Memcached interview questions (23 questions)

Redis interview topics (40 questions)

  • 1. What is Redis?
  • 2. What is 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 storage capacity for a string type value?
  • 8. What is the persistence mechanism of Redis? Their advantages and disadvantages?
  • 9. Redis common performance problems and solutions:
  • 10. How to delete redis expired keys?
  • 11. Redis recycling strategy (elimination strategy)?
  • 12. Why does edis need to put all the data in memory?
  • 13. Do you understand the synchronization mechanism of Redis?
  • 14. What are the benefits of Pipeline? Why use pipeline?
  • 15. Have you used Redis cluster? What is the principle of cluster?
  • 16. Under what circumstances will the Redis cluster solution cause the entire cluster to be unavailable?
  • 17. What are the Java clients supported by Redis? Which one is the official recommendation?
  • 18. What are the advantages and disadvantages of Jedis and Redisson?
  • 19. How to set password and verify password for Redis?
  • 20. Tell me about the concept of Redis hash slots?
  • 21. What is the master-slave replication model of Redis cluster?
  • 22. Will there be write operation loss in Redis cluster? why?
  • 23. How is replication between Redis clusters?
  • 24. What is the maximum number of nodes in a Redis cluster?
  • 25. How to choose database for Redis cluster?
  • 26. How to test the connectivity of Redis?
  • 27. How to understand Redis transaction?
  • 28. What are the commands related to Redis transactions?
  • 29. How to set the expiration time and permanent validity of Redis key?
  • 30. How does Redis optimize memory?
  • 31. How does the Redis recycling process work?
  • 32. Are there any ways to reduce the memory usage of Redis?
  • 33. What happens when Redis runs out of memory?
  • 34. How many keys can a Redis instance store at most? List, Set, Sorted Set, how many elements can they store at most?
  • 35. There are 2000w data in MySQL and only 20w data in redis. How to ensure that the data in redis are all hot data?
  • 36. What scenario is Redis most suitable for?
  • 37. If there are 100 million keys in Redis, 10w of them start with a fixed, known prefix, what if they are all found?
  • 38. If there are a large number of keys that need to be set to expire at the same time, what should be paid attention to?
  • 39. Have you used Redis as an asynchronous queue? How do you use it?
  • 40. Have you ever used Redis distributed lock? What is it?

MySQL interview topics (50 questions)

  • 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 each level?
  • 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% and _ in the LIKE statement mean?
  • 11. What is the column comparison operator?
  • 12. What is the difference between BLOB and TEXT?
  • 13. What is the difference between MySQL_fetch_array and MySQL_fetch_object?
  • 14. Where will the MyISAM tables be stored and also provide their storage format?
  • 15. How does MySQL optimize DISTINCT?
  • 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 CURRENT_DATE()?
  • 19. What is a non-standard string type?
  • 20. What is a general SQL function?
  • 21. Does MySQL support transactions?
  • 22. What field type is good for recording currency in MySQL
  • 23. What are the MySQL tables related to permissions?
  • 24. What can be the string type of the column?
  • 25. The MySQL database is used for the storage of the publishing system, with an increment of more than 50,000 entries per day. It is expected to operate and maintain for three years. How to optimize?
  • 26, lock optimization strategy
  • 27. The underlying implementation principle and optimization of the index
  • 28. Under what circumstances the index is set but cannot be used
  • 29. How to optimize MySQL in practice
  • 30. Methods to optimize the database
  • 31. Briefly describe the difference between index, primary key, unique index, and joint index in MySQL, and what impact on database performance (from both read and write)
  • 32. What is the transaction in the database?
  • 33. What causes SQL injection vulnerabilities? How to prevent it?
  • 34. Select the appropriate data type for the fields in the table
  • 35. Storage period
  • 36. Indexes are a very important concept for relational databases. Please answer several questions about indexes: (1. What is the purpose of indexes? 2. What are the negative effects of indexes on database systems? 3. For data What are the principles of table indexing? 4. Under what circumstances should not index?)
  • 39. What parts does the SQL language include? What are the operational keywords in each part?
  • 40. What are the integrity constraints?
  • 41. What is a lock?
  • 42. What is a view? What is a cursor?
  • 43. What is a stored procedure? What to call?
  • 44. How to understand the three paradigms in a popular way?
  • 45. What is a basic table? What is a view?
  • 46. ​​What are the advantages of views?
  • 47. What does NULL mean?
  • 48. The difference between primary key, foreign key and index?
  • 49. What can you use to ensure that the fields in the table only accept values ​​in a specific range?
  • 50. What are the methods to optimize SQL statements? (Choose a few)

Java concurrent programming interview topics

Concurrent programming (1) (75 questions)

 

 

 

  • 60. What is a blocking method?
  • 61. What is ReadWriteLock in Java?
  • 62. What is the difference between a volatile variable and an atomic variable?
  • 63. Can the run () method of the Thread class be called directly?
  • 64. How to pause a running thread for a period of time?
  • 65. What is your understanding of thread priority?
  • 66. What is Thread Scheduler and Time Slicing?
  • 67. How do you ensure that the thread where the main() method is located is the thread where the Java program ends last?
  • 68. How do threads communicate?
  • 69. Why are the methods wait(), notify() and notifyAll() of thread communication defined in the Object class?
  • 70. Why wait(), notify() and notifyAll () must be called in a synchronized method or synchronized block?
  • 71. Why are the sleep() and yield () methods of the Thread class static?
  • 72. How to ensure thread safety?
  • 73. Which is a better choice, synchronization method or synchronization block?
  • 74. How to create a daemon thread?
  • 75. What is the Java Timer class? How to create a task with a specific time interval?

Concurrent programming (two)

 

Java interview topics

Java Interview (1) (95 questions)

 

 

Java Interview Questions (2) (133 questions)

  • Basic issues of multithreading, concurrency and threads

  • Java interview questions for experienced programmers

  • Data types and Java basic interview questions

  • JVM bottom layer and GC (Garbage Collection) interview questions

  • Java basic concepts interview questions

  • Interview questions for Java collection framework

  • Interview questions for Java IO and NIO

  • Interview questions for Java best practices

  • Interview questions for Date, Time and Calendar

  • Unit test JUnit interview questions

  • Interview questions related to programming and code

  • Interview questions about OOP and design patterns

  • Various other questions in the Java interview

Spring interview topics

  • General question
  • 1. What are the main functions of different versions of Spring Framework?
  • 2. What is Spring Framework?
  • 3. List the advantages of Spring Framework
  • 4. What are the different functions of Spring Framework?
  • 5. How many modules are there in Spring Framework and what are they?
  • 6. What is a Spring configuration file?
  • 7. What are the different components of a Spring application?
  • 8. What are the ways to use Spring?
  • Dependency injection (Ioc)
  • 1. What is the Spring IOC container?
  • 2. What is dependency injection?
  • 3. How many ways can dependency injection be accomplished?
  • 4. Distinguish between constructor injection and setter injection.
  • 5. How many IOC containers are there in spring?
  • 6. Distinguish BeanFactory and ApplicationContext.
  • 7. List some of the benefits of IoC.
  • 8. Implementation mechanism of Spring IoC
  • Beans
  • 1. What is a spring bean?
  • 2. What configuration methods does spring provide?
  • 3. Does spring support centralized bean scope?
  • 4. What is the life cycle of the spring bean container?
  • 5. What is the inner bean of spring?
  • 6. What is spring assembly?
  • 7. What are the methods of automatic assembly?
  • 8. What are the limitations of automatic assembly?
  • annotation
  • 1. What is the annotation-based container configuration?
  • 2. How to start annotation assembly in spring?
  • 3. What is the difference between @Component, @Controller, @Repository, and @Service?
  • 4. What is the use of @Required annotation?
  • 5. What is the use of @Autowired annotation?
  • 6. What is the use of @Qualifier annotation?
  • 7. What is the use of @RequestMapping annotation?
  • data access
  • 1. What is the use of spring DAO?
  • 2. List the exceptions thrown by Spring DAO.
  • 3. What classes exist in the spring JDBC API?
  • 4. What are the ways to access Hibernate using Spring?
  • 5. List the transaction management types supported by spring
  • 6. Which ORM frameworks does spring support?
  • AOP
  • 1. What is AOP?
  • 2. What is Aspect?
  • 3. What is the point of contact (JoinPoint)
  • 4. What is an Advice?
  • 5. What types of notices (Advice) are there?
  • 6. Point out the difference between concern and cross-cutting concern in spring aop
  • 7. What are the implementation methods of AOP
  • 8. What is the difference between Spring AOP and AspectJ AOP?
  • 9. How to understand the proxy in Spring?
  • 10. What is weaving?
  • MVC
  • 1. What is the use of Spring MVC framework?
  • 2. Describe the workflow of DispatcherServlet
  • 3. Introduce WebApplicationContext

Microservice interview topics (50 questions)

  • 30. What is the purpose of PACT in the microservice architecture?
  • 31. What is OAuth?
  • 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 the microservice architecture?
  • 37. What is a consumer-driven contract (CDC)?
  • 38. What is the role of Web and RESTful API in microservices?
  • 39. What do you know about semantic monitoring in microservice architecture?
  • 40. How do we conduct cross-functional testing?
  • 41. How can we eliminate indeterminism in testing?
  • 42. What is the difference between Mock and Stub?
  • 43. How much do you know about Mike Cohn's test pyramid?
  • 44. What is the purpose of Docker?
  • 45. What is canary release?
  • 46. ​​What is continuous integration (CI)?
  • 47. What is continuous monitoring?
  • 48. What is the role of the architect in the microservice architecture?
  • 49. Can we use microservices to create state machines?
  • 50. What is reactive extension in microservices?

Linux interview questions (45 questions)

  • 30. What command is used to specify the command prompt?
  • 31. Where do you find the executable file of the search command? How to set and add it?
  • 32. What command is used to find and execute commands?
  • 33. How to alias a command?
  • 34. The definition and difference of du and df?
  • 35, awk detailed explanation.
  • 36. What should you do when you need to bind a macro or button to a command?
  • 37. If a Linux novice wants to know the list of all the commands supported by the current system, what should he do?
  • 38. If your assistant wants to print out the current directory stack, what would you recommend him to do?
  • 39. Your system currently has many running tasks. Is there any way to remove all running processes without restarting the machine?
  • 40. What is the function of the hash command in the bash shell?
  • 41. Which bash built-in command can perform mathematical operations.
  • 42. How to view the contents of a large file page by page?
  • 43. Which user does the data dictionary belong to?
  • 44. How to view the summary and usage of a linux command? Suppose you accidentally see a command in the /bin directory that you have never seen before, how can you know its function and usage?
  • 45. Which command can I use to check the disk space quota of my file system?

Spring Boot interview topics (22 courses)

Spring Cloud interview topics (8 courses)

RabbitMQ interview topics (12 courses)

Kafka interview topics (18 courses)

Finally put a force

The "1000 Questions for Java Senior Engineer Interviews" collected this time , not to speak big words, if you can gnaw it off, is it harder to jump up to 10K than to climb the sky? It is impossible to drop, whether you are preparing for an interview or studying, these notes and interview materials are very helpful for you.

Friends in need, click here to get it for free!

Guess you like

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