Ali P7 interview must ask: distributed + high concurrency + Redis.pdf documentation

Looking at the Java interview questions over the past few years, you will find that each one is similar. If you observe carefully, you will find that the appearance probability of HashMap is too high! Even the knowledge points examined are the same, what hash collisions, concurrency problems! Another example is JVM, nothing more than testing memory structure, GC algorithm, etc.! Therefore, if it is for an interview, there are ways to prepare! Remember, no matter how good the foundation is, the interviewer can't stand up to the random questions, so it is still necessary to brush the interview questions !

Below I have summarized most of the interview questions and answers involved in Internet company java programmer interviews. Documents and architecture video materials are made to share with you for free (including Dubbo, Redis, Netty, zookeeper, Spring cloud, distributed, high Concurrency and other architecture technical materials and interview questions from major manufacturers) , I hope to help you review before the interview and find a good job, and also save everyone's time to search for materials on the Internet to learn.

The way to receive is at the end of the article! The way to receive is at the end of the article!

Spring

Ali P7 interview must ask: distributed + high concurrency + Redis, I am really afraid that you will regret it if you don't look at it

 

  1. Spring overview
  2. What is spring?
  3. What are the benefits of using the Spring framework?
  4. What modules does Spring consist of?
  5. Explain the AOP module
  6. Spring configuration file
  7. What is the Spring IOC container?

Dependency injection

  1. What is dependency injection in Spring?
  2. What are the different types of IOC (dependency injection) methods?
  3. Which method of dependency injection do you recommend, constructor injection or Setter method injection?

Spring Beans

  1. What are Spring beans? What does a Spring Bean definition include?
  2. How to provide configuration metadata to the Spring container?
  3. How do you define the scope of the class?
  4. Explain the scope of several beans supported by Spring
  5. Explain the life cycle of beans in the Spring framework
  6. How to inject a java collection in Spring?
  7. What is bean assembly? What is automatic assembly of beans?
  8. Explain different ways of automatic assembly

Spring annotation

  1. What is the Spring annotation configuration based on Java? Give some annotation examples
  2. What is annotation-based container configuration?
  3. How to turn on annotation assembly?
  4. @Required annotation, @Autowired annotation, @Qualifier annotation

Spring data access

  1. How to use JDBC more effectively in the Spring framework?
  2. JdbcTemplate
  3. How to access Hibernate using Spring?
  4. How to combine Spring and Hibernate through HibernateDaoSupport?
  5. What are the advantages of Spring Framework transaction management?
  6. Which type of transaction management do you prefer?

Spring Aspect Oriented Programming (AOP)

  1. Explain AOP
  2. Aspect
  3. What is the difference between focus and crosscutting focus in Spring AOP?
  4. What is introduction? What is the target audience? What is an agent?
  5. How many different types of automatic agents are there?
  6. What is weaving. What are the differences in weaving applications?
  7. Explain the aspect realization based on XML Schema
  8. Explain the annotation-based aspect realization

Spring 的MVC

  1. What is Spring's MVC framework?
  2. DispatcherServlet
  3. WebApplicationContext
  4. What is the controller of the Spring MVC framework?
  5. @Controller annotation, @RequestMapping annotation

Ali P7 interview must ask: distributed + high concurrency + Redis, I am really afraid that you will regret it if you don't look at it

Part of the content display

Redis

Ali P7 interview must ask: distributed + high concurrency + Redis, I am really afraid that you will regret it if you don't look at it

 

  1. What is Redis?
  2. What are the advantages of Redis over memcached?
  3. Which data types does Redis support?
  4. What physical resources does Redis consume?
  5. What is the full name of Redis?
  6. What kinds of data elimination strategies does Redis have?
  7. What should the Redis cluster solution do? What are the options?
  8. What are the suitable scenarios for Redis?
  9. What are the Java clients supported by Redis? Which one is the official recommendation?
  10. How does the Redis recycling process work?
  11. Do you know what Redis partition implementation schemes are there?
  12. What are the disadvantages of Redis partitioning?
  13. How to expand Redis persistent data and cache?
  14. Should distributed Redis be done at the early stage or at the later stage? why?
  15. How is Redis different from other key-value stores?
  16. What is the memory usage of Redis?
  17. Redis common performance problems and solutions?
  18. What kinds of persistence methods does Redis provide?
  19. How to choose a suitable persistence method?
  20. Will the modified configuration take effect in real time without restarting Redis?

Ali P7 interview must ask: distributed + high concurrency + Redis, I am really afraid that you will regret it if you don't look at it

Part of the content display

MyBatis

Ali P7 interview must ask: distributed + high concurrency + Redis, I am really afraid that you will regret it if you don't look at it

 

  1. What is the difference between #{} and ${}?
  2. Usually an Xml mapping file will have a Dao interface corresponding to it. What is the working principle of this Dao interface? When the method in Dao interface has different parameters, can the method be overloaded?
  3. How does Mybatis perform paging? What is the principle of the paging plugin?
  4. How does Mybatis encapsulate the sql execution result as a target object and return it? What are the mapping forms?
  5. In the Xml mapping file, besides the common select|insert|update|delete tags, what other tags are there?
  6. Briefly describe the operation principle of Mybatis plug-in and how to write a plug-in
  7. Primary and secondary cache
  8. Does Mybatis support lazy loading? If so, what is its implementation principle?
  9. In the Mybatis mapping file, if the A tag refers to the content of the B tag through include, can the B tag be defined after the A tag, or must it be defined before the A tag?
  10. Briefly describe the mapping relationship between Mybatis Xml mapping file and Mybatis internal data structure?

Ali P7 interview must ask: distributed + high concurrency + Redis, I am really afraid that you will regret it if you don't look at it

Part of the content display

MySQL

Ali P7 interview must ask: distributed + high concurrency + Redis, I am really afraid that you will regret it if you don't look at it

 

  1. A table with an ID auto-incrementing primary key. After inserting 17 records, the 15, 16, 17 records are deleted, Mysql is restarted, and another record is inserted. Is the ID of this record 18 or 15?
  2. What are the technical characteristics of Mysql?
  3. What is Heap table?
  4. What is the default port of Mysql server?
  5. How to distinguish FLOAT and DOUBLE?
  6. Distinguish between CHAR_LENGTH and LENGTH?
  7. Please briefly describe the names of the four transaction isolation levels supported by InnoDB in Mysql and the differences between each level?
  8. What is the usage of ENUM in Mysql?
  9. How to define REGEXP?
  10. The difference between CHAR and VARCHAR?
  11. Is Mysql query case sensitive?
  12. What are the different tables in Mysql?
  13. What kind of objects can be created using the CREATE statement?
  14. What are common SQL functions?
  15. Does MYSQL support transactions?
  16. What field type is good for recording currency in mysql
  17. What kind of locks are there in Mysql?
  18. What are the method commands for MYSQL database server performance analysis?

Ali P7 interview must ask: distributed + high concurrency + Redis, I am really afraid that you will regret it if you don't look at it

Part of the content display

HashMap

Hash calculation rules?

How does HashMap form a circular linked list (that is, why is it not thread-safe)?

Why the capacity of HashMap must be a power of 2

The difference between LinkedHashMap and HashMap

The difference between HashMap and HashTable?

Zookeeper

  1. What does ZooKeeper provide?
  2. ZAB agreement?
  3. Four types of data nodes Znod
  4. ACL permission control mechanism
  5. How does zookeeper ensure the sequential consistency of transactions?
  6. The difference between zookeeper load balancing and nginx load balancing
  7. At least a few machines are required for a cluster. What are the cluster rules?
  8. Does the cluster support dynamically adding machines?
  9. What are the java clients of Zookeeper?
  10. What is chubby, and how do you compare to zookeeper?
  11. Say a few commonly used commands in zookeeper.
  12. The connection and difference between ZAB and Paxos algorithm?
  13. Typical application scenarios of Zookeeper

Ali P7 interview must ask: distributed + high concurrency + Redis, I am really afraid that you will regret it if you don't look at it

Part of the content display

Dubbo

  1. Why use Dubbo?
  2. What are the layers of Dubbo's overall architecture design?
  3. What serialization framework is used by default, and what else do you know?
  4. What is the principle that the service provider can achieve the failure kick-out?
  5. How to solve the problem of too long service call chain?
  6. Can a service be directly connected to the same service when there are multiple registrations?
  7. Dubbo service is downgraded, what should I do if I fail to retry?
  8. What problems did you encounter during the use of Dubbo?
  9. How is the Dubbo configuration file loaded into Spring?
  10. Does Dubbo support distributed transactions?
  11. What packages must Dubbo depend on?
  12. How does Dubbo stop gracefully?
  13. The difference between Dubbo and Spring Cloud?

Ali P7 interview must ask: distributed + high concurrency + Redis, I am really afraid that you will regret it if you don't look at it

Part of the content display

Multithreading

  1. What is the use of multithreading?
  2. Ways to create threads
  3. The difference between start() method and run() method
  4. The difference between Runnable interface and Callable interface
  5. The difference between CyclicBarrier and CountDownLatch
  6. The role of the volatile keyword
  7. What is thread safety
  8. How to get the thread dump file in Java
  9. How to detect whether a thread holds an object monitor
  10. What is the concurrency of ConcurrentHashMap
  11. How to find which thread uses the longest CPU in Linux environment
  12. Java programming write a program that will cause deadlock
  13. What is the Java memory model
  14. What is optimistic lock and pessimistic lock
  15. How to use thread pools for businesses with high concurrency and short task execution time? How do businesses with low concurrency and long task execution time use thread pools? How to use thread pool for business with high concurrency and long business execution time?

 

Linux interview questions

  1. What symbol is used to represent the absolute path? What is the current directory and upper directory? What is the main directory? What command is used to switch directories?
  2. How to clear the screen? How to exit the current command? How to perform sleep? How to check the current user id? What command is used to view the specified help?
  3. What commands can be used to view file contents?
  4. Which file in which folder is the terminal? Which command under which folder is the black hole file?
  5. What kinds of wildcards can be used for commands under Linux? What do they mean?
  6. What is the use of the Grep command? How to ignore case? How to find the rows without the string?
  7. How to use ps to display all processes? How to use ps to view the information of a specified process?
  8. What command is used to transfer a background task to the foreground for execution? What command is used to execute a stopped background task in the background?
  9. What command is used to check who is currently using the host? What command is used to find the terminal information where you are?
  10. Where do you find the executable file of the search command? How to set and add it?
  11. How to alias a command?
  12. If your assistant wants to print out the current directory stack, what would you advise him to do?

Ali P7 interview must ask: distributed + high concurrency + Redis, I am really afraid that you will regret it if you don't look at it

Part of the content display

No answer? How is it possible? It is not my style to give interview questions but not answers. The interview questions here are only rare, and if there are answers, it will greatly increase the length of the article and reduce the readability of the article.

At last

Obtaining method: After following the forwarding, click on my homepage, and reply to [666] by private message to get it for free.

Ali P7 interview must ask: distributed + high concurrency + Redis, I am really afraid that you will regret it if you don't look at it

Guess you like

Origin blog.csdn.net/bieber007/article/details/108950901