Advanced interview questions (difficulty)
1. What three parts does the java event mechanism include? Introduce separately.
2. Why use thread pool?
3. What is the function of thread pool?
4. Tell us about several common thread pools and usage scenarios.
5. What kinds of work queues do thread pools have?
6. How to understand unbounded queues and bounded queues?
7. Several important parameters and process descriptions in the thread pool.
8. What is the reflection mechanism?
9. Talk about the role of the reflection mechanism.
10. Will there be performance problems with the reflection mechanism?
11. How do you understand the http protocol?
12. Talk about the workflow of the http protocol.
13. What are the ways to submit requests for http?
14. What state does 200, 302, 403, 404, 500, 503 in http represent?
15. What is the difference between http get and post?
16. How do you understand cookies andsession, What are the differences?
17. What is web caching? What are the advantages?
18. What is https? Tell me how https works?
19. What is an http proxy server and what is its use?
20. What is a virtual host and its implementation principle?
21. What is JavaVirtual Machine, why use it?
22. Talk about the life cycle and architecture of Java virtual machines.
23. Tell me about Java memory area.
24. What is a distributed system?
25. What aspects will you consider for a distributed system?
26. Say a lectureTCPThe three-handshake and four-wave process of the agreement.
27. Why is TCP connecting protocol three times handshake, while closing the connection four times handshake? Why can't you connect with two handshakes?
28. Why does the TCP TIME_WAIT state need to wait 2MSL before returning to the CLOSED state?
29. What are DoS, DDoS, and DRDoS attacks? How to defend?
30. Describe the Java exception hierarchy.
31. What is an exception that is not checked or runtime exception? Let’s give examples separately.
32. Will the finally block be executed?
33. Under normal circumstances, when a return statement is encountered in a try block or catch block, is finally executed before or after the method returns?
34. The execution order of try, catch, and finally statement blocks.
35. In Java virtual machines, what types can data types be divided into?
36. How to understand stack and stack? What is stored in the heap? What is stored in the stack?
37. Why distinguish between heap and stack? Can't data be stored in the stack?
38. In Java, what is the starting point of the stack, and it is also the starting point of the program?
39. Why not put basic types in the pile?
40. What about passing values when passing parameters in Java? Or pass a quote?
41. Is there any concept of pointers in Java?
42. In Java, what parameters are used to set the stack size?
43. How much space does an empty Object object occupy?
44. What are the categories of object reference types?
45. Tell me about the garbage collection algorithm.
46. How to solve the problem of memory fragmentation?
47. How to solve the problems of object creation and object recycling that exist at the same time?
48. Let’s talk about memory generation and life cycle.
49. Under what circumstances will garbage collection be triggered?
50. How to choose the right garbage collection algorithm?
51. Is there any limit on the maximum heap size in JVM?
52. What parameters are used to set the heap size?
53. What are the three types of garbage collectors in JVM?
54. What garbage collector is preferred for throughput? What is the response time priority?
55. How to tune JVM? What are the methods?
56. How to understandMemory leakquestion? What are the situations that lead to memory leakage? How to solve it?
57. From the perspective of distributed system deployment, what are the layers?
58. How to solve the data access problem at the business level?
59. In order to solve the burden on the database server, how to distribute the database?
60. What is the famous Byzantine General’s question?
61. Why is the TCP/IP protocol unreliable?
62. Talk about the CAP concept.
63. How to understand strong consistency, monotonous consistency and final consistency?
64. What strategies will you consider in the design of distributed system?
65. What is the most common way to distribute data?
66. Let’s talk about the consistency hashing algorithm.
67. What is paxos?
68. What is the Lease mechanism?
69. How to understand the master selection algorithm?
70. What are the seven-layer models of OSI? Which four-layer model is TCP/IP?
1. What three parts does the java event mechanism include? Introduce separately.
2. Why use thread pool?
3. What is the function of thread pool?
4. Tell us about several common thread pools and usage scenarios.
5. What kinds of work queues do thread pools have?
6. How to understand unbounded queues and bounded queues?
7. Several important parameters and process descriptions in the thread pool.
8. What is the reflection mechanism?
9. Talk about the role of the reflection mechanism.
10. Will there be performance problems with the reflection mechanism?
11. How do you understand the http protocol?
12. Talk about the workflow of the http protocol.
13. What are the ways to submit requests for http?
14. What state does 200, 302, 403, 404, 500, 503 in http represent?
15. What is the difference between http get and post?
16. How do you understand cookies andsession, What are the differences?
17. What is web caching? What are the advantages?
18. What is https? Tell me how https works?
19. What is an http proxy server and what is its use?
20. What is a virtual host and its implementation principle?
21. What is JavaVirtual Machine, why use it?
22. Talk about the life cycle and architecture of Java virtual machines.
23. Tell me about Java memory area.
24. What is a distributed system?
25. What aspects will you consider for a distributed system?
26. Say a lectureTCPThe three-handshake and four-wave process of the agreement.
27. Why is TCP connecting protocol three times handshake, while closing the connection four times handshake? Why can't you connect with two handshakes?
28. Why does the TCP TIME_WAIT state need to wait 2MSL before returning to the CLOSED state?
29. What are DoS, DDoS, and DRDoS attacks? How to defend?
30. Describe the Java exception hierarchy.
31. What is an exception that is not checked or runtime exception? Let’s give examples separately.
32. Will the finally block be executed?
33. Under normal circumstances, when a return statement is encountered in a try block or catch block, is finally executed before or after the method returns?
34. The execution order of try, catch, and finally statement blocks.
35. In Java virtual machines, what types can data types be divided into?
36. How to understand stack and stack? What is stored in the heap? What is stored in the stack?
37. Why distinguish between heap and stack? Can't data be stored in the stack?
38. In Java, what is the starting point of the stack, and it is also the starting point of the program?
39. Why not put basic types in the pile?
40. What about passing values when passing parameters in Java? Or pass a quote?
41. Is there any concept of pointers in Java?
42. In Java, what parameters are used to set the stack size?
43. How much space does an empty Object object occupy?
44. What are the categories of object reference types?
45. Tell me about the garbage collection algorithm.
46. How to solve the problem of memory fragmentation?
47. How to solve the problems of object creation and object recycling that exist at the same time?
48. Let’s talk about memory generation and life cycle.
49. Under what circumstances will garbage collection be triggered?
50. How to choose the right garbage collection algorithm?
51. Is there any limit on the maximum heap size in JVM?
52. What parameters are used to set the heap size?
53. What are the three types of garbage collectors in JVM?
54. What garbage collector is preferred for throughput? What is the response time priority?
55. How to tune JVM? What are the methods?
56. How to understandMemory leakquestion? What are the situations that lead to memory leakage? How to solve it?
57. From the perspective of distributed system deployment, what are the layers?
58. How to solve the data access problem at the business level?
59. In order to solve the burden on the database server, how to distribute the database?
60. What is the famous Byzantine General’s question?
61. Why is the TCP/IP protocol unreliable?
62. Talk about the CAP concept.
63. How to understand strong consistency, monotonous consistency and final consistency?
64. What strategies will you consider in the design of distributed system?
65. What is the most common way to distribute data?
66. Let’s talk about the consistency hashing algorithm.
67. What is paxos?
68. What is the Lease mechanism?
69. How to understand the master selection algorithm?
70. What are the seven-layer models of OSI? Which four-layer model is TCP/IP?