Latest in September: A Java interviewer who has been working for four years, told me about his favorite interview questions during interviews

As there are more and more people engaged in Java development around, maybe your cousins, cousins ​​of friends, cousins ​​of friends of friends, are also doing java, when they need corresponding review materials At that time, you can send this information to them.

This interview question includes: Java basics, multithreading, Spring/Spring MVC, Spring Boot/Spring Cloud, Mybatis, RabbitMQ, Kafka, Zookeeper, MySql, Redis, JVM. These interviews are often asked and are also key things , Sort it out at once. Also sort out the corresponding answers, friends in need can click: click this! Click this! Password: csdn. It's so sweet~
Insert picture description here

One, Java basics

What is the difference between JDK and JRE?
What is the difference between == and equals?
If the hashCode() of two objects is the same, equals() must also be true, right?
What is the role of final in java?
How much is Math.round(-1.5) in java?
Is String a basic data type?
What are the classes of manipulation strings in java? What is the difference between them?
Is String str="i" the same as String str=new String("i")?
How to reverse the string?
What are the common methods of the String class?
Do abstract classes have to have abstract methods?
What is the difference between ordinary and abstract classes?
Can abstract classes use final modification?
What is the difference between an interface and an abstract class?
How many types of IO streams are in java?
What is the difference between BIO, NIO and AIO?
What are the common methods of Files?

Two, multithreading

What is the difference between parallel and concurrency?
The difference between thread and process?
What is a daemon thread?
What are the ways to create threads?
What is the difference between runnable and callable?
What are the statuses of threads?
What is the difference between sleep() and wait()?
What is the difference between notify() and notifyAll()?
What is the difference between thread run() and start()?
What are the ways to create a thread pool?
What are the statuses of the thread pool?
What is the difference between the submit() and execute() methods in the thread pool?
How to ensure the safe operation of multiple threads in a java program?
How to prevent deadlock?
What is ThreadLocal? What are the usage scenarios?
Talk about the underlying implementation principle of synchronized?
What is the difference between synchronized and volatile?
What is the difference between synchronized and Lock?
What is the difference between synchronized and ReentrantLock?

三、Spring/Spring MVC

Why use spring?
Explain what is aop?
Explain what is ioc?
What are the main modules of spring?
What are the common injection methods for spring?
Are beans in spring thread safe?
What scope of beans does Spring support?
What are the ways to automatically assemble beans in spring?
Talk about the running process of spring mvc?
What are the components of spring mvc?
What is the purpose of @RequestMapping?
What is the role of @Autowired?

Friends in need can click: click this! Click this! Password: csdn.

Insert picture description here

四、Spring Boot/Spring Cloud

What is spring boot?
What is the spring boot core configuration file?
What types of spring boot configuration files are there? What is the difference between them?
What are the ways to achieve hot deployment with spring boot?
What is the difference between jpa and hibernate?
What is spring cloud?
What is the function of spring cloud circuit breaker?
What are the core components of spring cloud?

Five, JVM

What are the main components of jvm? And its role?
Talk about the jvm runtime data area?
Tell me about the difference between stacks?
What are queues and stacks? What's the difference?
What is the parent delegation model?
Talk about the execution process of class loading?
How to judge whether the object can be recycled?
What are the reference types in java?
Tell me about what garbage collection algorithms does jvm have?
What garbage collectors does jvm have?
Tell me more about the CMS garbage collector?
What are the new generation garbage collectors and the old generation garbage collectors? What's the difference?
Briefly describe how the generational garbage collector works?
Talk about the tools of jvm tuning?
What are the commonly used jvm tuning parameters?

Six, Zookeeper

What is zookeeper?
What are the functions of zookeeper?
How many deployment modes does zookeeper have?
How does zookeeper ensure the synchronization of the master and slave nodes?
Why is there a master node in the cluster?
There are 3 servers in the cluster and one of the nodes is down. Can zookeeper still be used at this time?
Tell me about the notification mechanism of zookeeper?

Seven, Mybatis

What is the difference between #{} and ${} in mybatis?
How many paging methods does mybatis have?
Does RowBounds query all results at once? why?
What is the difference between mybatis logical paging and physical paging?
Tell me about the first level cache and the second level cache of mybatis?
What are the differences between mybatis and hibernate?
What executors does mybatis have?
What is the realization principle of mybatis paging plug-in?
How to write a custom plug-in for mybatis?

Eight, MySql

What are the three paradigms of the database?
There are a total of 7 pieces of data in an auto-increment table. The last 2 pieces of data are deleted, the mysql database is restarted, and another piece of data is inserted. What is the id at this time?
How to get the current database version?
What is ACID?
What is the difference between char and varchar?
What is the difference between float and double?
What is the difference between inner connection, left connection and right connection in mysql?
How is the mysql index implemented?
How to verify whether the mysql index meets the requirements?
Talk about database transaction isolation?
Tell me about the engines commonly used in mysql?
Talk about the row lock and table lock of mysql?
Talk about optimistic locking and pessimistic locking?
What are the methods for mysql troubleshooting?
How to optimize the performance of mysql?

At the same time provide [free] Java architecture learning materials, learning technology content includes: Spring, Dubbo, MyBatis, RPC, source code analysis, high concurrency, high performance, distributed, performance optimization, microservice advanced architecture development, etc.
Friends in need can click: click this! Click this! Password: csdn.

There are also Java core knowledge points + a full set of architect learning materials and videos + first-line interview books + interview resume templates can be obtained + Alibaba Meituan Netease Tencent Xiaomi Iqiyi Kuaishou Bilibili interview questions + Spring source code collection + Java architecture Practical e-books, etc.
Insert picture description here

Guess you like

Origin blog.csdn.net/HarderXin/article/details/108503202