Don't know how to prepare for the interview? Take a look at this set of BATJ favorite interview questions

Not much to say, these are the interview questions about Java that have been asked the most in BATJ interviews in recent years. You can use this as the standard! Be prepared!

Mysql

  1. Compared with Oracle, what are the advantages of Mysql?
  2. Concisely describe the names of the four transaction isolation levels supported by InnoDB in Mysql, and the differences between each level?
  3. What is the usage of ENUM in Mysql?
  4. What storage engine is used in Mysql?
  5. How to use Unix shell to log in to Mysql
  6. What kind of locks are there in Mysql? Brief introduction

JVM

  1. The three collection methods of GC: the principles and characteristics of mark removal, mark sorting, and copying algorithms. Where are they used? If you are asked to optimize the collection method, what ideas do you have?
  2. What are the GC collectors? Features of CMS collector and G1 collector.
  3. JVM memory is divided into several areas, what is the role of each area?
  4. How to judge whether an object is alive? (or how to judge GC objects)
  5. Briefly describe the java class loading mechanism?
  6. What are class loaders and what are the class loaders?

Tomcat

  1. What is the default port of Tomcat and how to modify it?
  2. What kinds of connector operating modes (optimization) does tomcat have?
  3. How many ways to deploy Tomcat?
  4. Monitor Tomcat's memory usage
  5. Tomcat complete process of a request
  6. Tomcat working mode

Redis

  1. How does redis master-slave replication work? How to realize the cluster mode of redis? How are redis keys addressed?
  2. How to design distributed locks using redis? Talk about the realization idea? Can I use zk? How to achieve? What is the difference between these two?
  3. Do you know the persistence of redis? How is the bottom layer implemented? What are the advantages and disadvantages?
  4. What are the redis expiration strategies? Does the LRU algorithm know? Write java code implementation
  5. Cache penetration, cache breakdown, and cache avalanche solutions?
  6. When choosing a cache, when to choose redis and when to choose memcached

Multithreading

  1. Now there are three threads T1, T2, T3. How do you ensure that T2 is executed after T1 is executed, and T3 is executed after T2 is executed?
  2. The difference between wait and sleep methods in java?
  3. Using Java to program a program that will cause a deadlock, how would you solve it?
  4. What are race conditions? How do you discover and resolve competition?
  5. Why do we execute the run() method when we call the start() method, why can’t we call the run() method directly?
  6. How do you wake up a blocked thread in Java?

Design Patterns

  1. In Java, why is it not allowed to access non-static variables from static methods?
  2. In Java, when do you use overloading and when do you use rewriting?
  3. Give examples to illustrate when you would prefer to use abstract classes instead of interfaces?
  4. What is the singleton design pattern in Java? Please write a thread-safe singleton pattern in Java
  5. What is a design pattern? Have you used any design patterns in your code?
  6. Please list several commonly used design patterns in JDK?

Nginx

  1. Please list some features of Nginx
  2. Please explain how Nginx handles HTTP requests.
  3. What are the advantages of using a "reverse proxy server"?
  4. Please list the best uses of Nginx server.
  5. Please explain how you open Nginx through a port other than 80?
  6. In Nginx, explain how to keep the double slash in the URL?

ActiveMQ

  1. What if the ActiveMQ server is down?
  2. Is the message retransmission interval and retransmission times in ActiveMQ?

Kafka

  1. What are the two conditions for Kafka to judge whether a node is still alive?
  2. Can Kafa consumer consume messages from specified partitions?
  3. Does Kafka message use Pull mode or Push mode?
  4. What is the message format of Kafka stored on the hard disk?
  5. How to place partitions in different Brokers when Kafka creates Topic
  6. Kafka's ack mechanism

These are the Java interview questions I summarized,

Interview question answer, how to get

One-click triple + comment, then add my VX (tkzl6666) to receive it for free.

BATJ Advanced Java Interview Questions Sharing: JVM+Redis+Kafka + Database + Design Pattern

 

BATJ Advanced Java Interview Questions Sharing: JVM+Redis+Kafka + Database + Design Pattern

 

BATJ Advanced Java Interview Questions Sharing: JVM+Redis+Kafka + Database + Design Pattern

 

4690572367214f3d9596a299046afe67

0714d406b4b645a0b96a7dad44021e31

 

image.pngimage.png

Interview question answer, how to get

One-click triple + comment, then add my VX (tkzl6666) to receive it for free.

Guess you like

Origin blog.csdn.net/JavaBUGa/article/details/112994000