For gold and three silver four time, I sort of java face questions Summary

image
I sort of interview topics and answers Java architecture in today to share with you, most of which face questions in the interview process, you can control this leak filled, of course, listed here certainly can not cover all

JUC / concurrency-related

  1. ThreadLocal used it, what the principle is, use the time to pay attention to what
  2. Synchronized and the difference Lock
  3. synchronized principle, what is the spin locks, lock bias, lightweight lock, what is reentrant lock, what is fair and unfair lock lock
  4. concurrenthashmap concrete realization of its principles, under the revised jdk8
  5. Which atoms class used, what are their parameters and principles
  6. What cas, he will have any problem (ABA solve the problem, such as adding the number of modified, version number)
  7. If you could achieve a secure concurrent list, how would you do
  8. DESCRIPTION ConcurrentLinkedQueue LinkedBlockingQueue and usefulness and differences
  9. The principle outlined the AQS
  10. countdowlatch and cyclicbarrier usage, as well as the differences between each other?
  11. concurrent use package Which class? We are used to talk about what scene? Why should I use?
  12. LockSupport Tools
  13. Condition interface and its implementation principles
  14. Appreciated Fork / Join framework
  15. parallelStream understanding of jdk8
  16. Thinking segmented lock principle, lock the intensity decreases

Spring

  1. The principle of Spring AOP and IOC
  2. The difference between Spring and factoryBean of beanFactory
  3. Why CGlib ways to implement a proxy for the interface?
  4. RMI and proxy mode
  5. Spring's transaction isolation level, implementation principle
  6. Spring understanding, non-singleton injection principle? Its life cycle? Loop injection principle, aop implementation principle, talk about a few aop in terms of how they work with each other?
  7. The principle underlying the Mybatis
  8. MVC framework principles, how they are doing url routing
  9. spring boot features, benefits, and other application scenarios
  10. quartz timer and contrast
  11. spring the controller is a single case or multiple cases, how to ensure the safety of concurrent

Distributed related

  1. Dubbo underlying principles and mechanisms of implementation
  2. A detailed description of the service process from the Post to be consumed
  3. How to do distributed systems management services
  4. Idempotency interface concept
  5. How messaging middleware to solve the problem of lost messages
  6. Dubbo how to handle the service request failed
  7. Reconnection mechanism will not cause an error
  8. Understanding of distributed transactions
  9. How to achieve load balancing algorithm which can be achieved?
  10. Use of Zookeeper, what is the principle of elections?
  11. Split vertical horizontal split data.
  12. zookeeper principle and application scenarios
  13. zookeeper watch mechanism
  14. redis / zk node goes down how to deal with
  15. How to do a distributed cluster unique serial number
  16. How to do a distributed lock
  17. What used MQ, how to use, and other mq compare what advantages and disadvantages, MQ connection it is thread-safe
  18. How MQ system to ensure data is not lost
  19. Include database sub-library sub-table strategy you can think of; after sub-library sub-table, how to solve the problem of full table queries.

Data structures and algorithms, and design patterns

  1. Url Massive deduplication kind of problem (Bloom filter)
  2. And an array of linked list data structure described, each time complexity
  3. Traversing Binary Tree
  4. Quick Sort
  5. BTree related operations
  6. What design patterns encountered at work, it is how to apply
  7. What are the advantages and disadvantages of using a hash algorithm scene
  8. What is the consistency of hash
  9. paxos algorithm
  10. Between a decorative mode and proxy mode, how do you choose, please talk with their own actual situation
  11. Step reconstruction and reason codes, if understood to reconstruct mode?

database

  1. MySQL InnoDB storage file structure
  2. How the index tree is maintained?
  3. Database auto-increment primary keys possible problems
  4. Several MySQL optimization
  5. Why use mysql index B + tree
  6. Database lock table associated processing
  7. Failure scene index
  8. Under high concurrency how to make safe changes what data the same row, optimistic and pessimistic locking lock is, INNODB row-level locking which of two kinds, explaining its meaning
  9. Database deadlock it, give an example of deadlock, mysql how to solve deadlock

Redis & cache coherency

  1. How Redis concurrency problem-solving competition Redis understand it matters CAS operation
  2. How caching machine additions and deletions affect the achievement of the minimum, consistent hashing system
  3. Redis persistence in several ways, what advantages and disadvantages, how to achieve
  4. Redis cache invalidation policy
  5. Solution cache penetration
  6. redis clusters, high availability, principle
  7. There 2000w mySQL data, only the data stored in redis 20w, how to ensure that the data is hot data in redis
  8. Redis and implemented in any language to log a malicious code protection, limit each user Id within one hour can register up to five times
  9. redis data elimination strategy

Network-related

  1. What is the difference http1.0 and http1.1
  2. TCP / IP protocol
  3. TCP three-way handshake and four waving process, why the disconnect to 4 times, if only to shake hands twice, what will
  4. TIME_WAIT and the difference CLOSE_WAIT
  5. Tell me what you know several HTTP response code
  6. When you open a link in a browser, the computer what had been done step
  7. How TCP / IP reliability, data packets which make up
  8. Long connected to the short connection
  9. Http get and post requests and packet format distinction
  10. Tcp brief 3-way handshake to establish a connection and disconnection process 4-way handshake; when the connection is closed, there is too much TIMEWAIT caused by what is present in the active or passive square off square off

This article ends, like a friend to help little praise and attention, thanks!

Guess you like

Origin blog.csdn.net/qwe123147369/article/details/91867512