Summary of the latest JAVA high-frequency interview questions from major manufacturers in October, and learned how to open the interview all the way

Preface

In order to make it easier for students to review the interview, the editor has compiled various interview questions. Each question is selected by the editor and felt that they need to be mastered. This compilation includes Java, operating system, computer network, and database. , algorithm . And I have compiled the answers for everyone! .

Required interview questions (the answer is at the end):

JAVA related

  1. What is the difference between ArrayList and LinkedList and what scenarios are they suitable for?
  2. In addition to the chain address method, what other methods do HashMap solve hash conflicts?
  3. How to safely delete elements in List? Will an error be reported when deleting in a for loop?
  4. euqals和hashCode
  5. What is the difference between HashMap and ConcurrentHashMap
  6. HashMap insert element process
  7. What is an interface? What are the benefits of using interface
  8. Does Java have a memory leak
  9. What is the difference between ArrayList and LinkedList
  10. What does the volatile keyword do
  11. The difference between synchronized and reentrantlock
  12. Have you learned about CAS?
  13. Multiple threads write to the database at the same time, how to deal with it, if it is distributed multiple threads?
  14. Several design patterns are used in Spring
  15. What are the benefits of using the factory model

operating system

  1. Interprocess communication
  2. Process and thread difference
  3. Process scheduling algorithm
  4. What is a coroutine
  5. IO multiplexing
  6. What does an exe file contain
  7. Virtual Memory
  8. Zero copy
  9. The difference between stack and heap

computer network

  1. Three handshake, four waves
  2. How does TCP ensure the reliability of communication
  3. How long to wait for the trigger timeout
  4. Specifically talk about congestion control
  5. What is the use of 2MSL of time wait
  6. What is the problem with too much time wait status
  7. Have you used Linux? How is the network configured? Talk about DHCP
  8. What happened after entering the URL
  9. The difference between HTTP and HTTP
  10. The difference between Session and Cookie
  11. The difference between Get and Post
  12. What protocol is used for ping, specifically ICMP
  13. The difference between TCP and UDP
  14. How to solve the sticky package problem

database

  1. What index used
  2. Talk about the principle of the leftmost prefix
  3. The difference between clustered index and non-clustered index
  4. Data structure used by the index
  5. The difference between InnoDB and Myisam
  6. The characteristics of the transaction, what are the isolation levels

algorithm

  1. Keyword split string
  2. Top K question
  3. Determine whether it is a mirrored binary tree
  4. That the first node chain even bit, odd bit in the node (e.g., 1 -> 2 -> 3 -> 4 -> 5into 2 -> 4 -> 1 -> 3 -> 5)
  5. Step up
  6. Minimum edit distance
  7. Judge whether 4 numbers meet 24 points
  8. An array consisting only of 1, 0, -1, make all 1s at the front of the array, and all -1s at the end of the array (modify on the original array)
  9. Reverse linked list
  10. Why is the time complexity of binary search log2nlog_2nlog2​n and how to calculate it
  11. The combined arrays can be combined, such as [[1, 2], [4, 6], [5, 8]]merged[[1, 2], [4, 8]]
  12. Determine whether the number of int32 is a palindrome (1. Consider negative numbers; 2. Consider overflow issues)
  13. How many times does k appear in 1~n (n is a positive integer, k is [0, 9]) (two types of questions, such as question type 1:55 in 5 only counts once; question type 2:55 in 5 Appeared 2 times)

to sum up

The editor actually feels that strength and luck are at odds during the interview.

An interview does not mean much, but how much you missed and filled in this interview and how much your psychological quality has improved will affect your next interview. To borrow a sentence from Borges:  "Life is miserable, and I set off again with my broken pulp.​​​​"

 The editor also sorted out the interview questions and answers of the big guys: click here to get it for free, the code: CSDN , there are more interview topics and videos from big factories!

It is not easy to write an article. If it is helpful, please pay attention and support the editor. You are also welcome to ask questions, thanks! ! !

 

Guess you like

Origin blog.csdn.net/qq_43080036/article/details/108977560