Java
Some simple questions in this part of Java basics are not directly put up.
If you need information, please click here to get it for free!
basis:
- Java reflection? What are the disadvantages of reflection? How do you understand reflection (why does the framework need reflection)?
- Talk about the understanding of Java annotations, what problems have been solved?
- Do you understand the inner class? Do anonymous inner classes understand?
- The difference between BIO and NIO, 4 core cpu, 100 http connections, how many threads are required for BIO and NIO respectively
- The load factor of HashMap.
jvm:
- jvm memory structure
- jvm tuning parameters
- What is class loading?
- When is the class loaded?
- java class loading process?
- Know which class loaders. The relationship between class loaders?
- The relationship between class loaders?
- Parental delegation of class loader (combined with tomcat to talk about parental delegation)
- Why do parents need to delegate
- Java memory model
- What data is stored in the stack and in the heap?
- In which memory area the large object is placed
- How to classify the heap area
- What are the algorithms for garbage collection
- The whole process of GC
- What recovery method is used in the old GC?
If you need information, please click here to get it for free!
Multithreading:
- What are the parameters of the Java thread pool? How many kinds of blocking queues are there? What are the rejection strategies?
- Deadlock
Multi-threaded interview questions analysis
Design Patterns:
- What design pattern has the most impact on you when reading the Spring source code? how to use?
- Singleton mode, usage scenarios of singleton mode
- Observer mode, usage scenarios of observer mode
Spring
- The difference between spring boot and spring
- ioc and aop (ioc process, aop implementation principle), spring aop exception handling, when an exception occurs after a piece of code is try catch, is the aop exception notification executed, and why?
- Talk about the life cycle of spring bean
- What is the bottom layer of spring data jpa?
- The difference between hibernate and mybatis
- spring boot filter
- spring boot interceptor
- Which spring dynamic proxy uses by default
- Write the implementation of spring jdk dynamic proxy.
- Draw the whole process of spring boot processing an http request
Spring interview questions analysis
recommend
- Realize the core functions of Spring by hand: github.com/jinzzzzz/sp...
Authority authentication
- What is the difference between Authentication and Authorization?
- What is a cookie? What is the purpose of a cookie? How to use a cookie on the server?
- What is the difference between Cookie and Session? How to use Session for authentication?
- Can Session still be used without Cookies?
- Why can't cookies prevent CSRF attacks, but tokens can?
- What is Token? What is JWT? How to authenticate based on Token?
- What is OAuth 2.0?
- What is SSO (Single Sign-On)
If you need information, please click here to get it for free!
Microservices/distributed
- Why a gateway?
- What are the current limiting algorithms?
- Why do we need a distributed id? What are the distributed id generation strategies?
- Do you know RPC? What are the common RPC frameworks?
- If you let you design your own RPC framework, how would you design it?
- Dubbo understand? Does Spring Cloud understand?
Microservice/distributed interview questions analysis
database
- The difference between non-relational database and relational database?
- Four characteristics of transactions
- MySQL transaction isolation level? What level is the default?
- The difference between optimistic lock and pessimistic lock
- The difference between the two database storage engines
- The principle of leftmost prefix matching and its reasons
- Ideas for optimization of large tables
- The difference between where and having
- Sub-database and sub-table
- explain command
Analysis of database interview questions
index
- How to speed up database query
- The difference between clustered index and non-clustered index
- When should you not use indexes?
- The underlying data structure of the index?
- How is B+ tree indexing better than red-black tree?
Analysis of database index interview questions
Redis:
- How is redis used in the project? What problem was solved?
- Talk about the process of querying with caching and the process of modifying with caching.
- What data structure does redis have
- What to do if the redis memory is full
- What are the redis memory elimination algorithms besides lru
- Possible problems with distributed cache
- Cache penetration problem
The internet
- Some common status codes of computer networks
- Protocol used by ping
- TCP's three-way handshake and four waved content
- Why TCP connection is a three-way handshake and disconnection is a four-way handshake
- The difference between TCP and UDP and usage scenarios
- The steps of a complete HTTP request
- How does http save login information (I don't understand the meaning too much)
- The relationship between Cookie and Session
Online interview questions analysis
Algorithm and data structure
algorithm
- Do you understand the LRU algorithm? Can you achieve one?
- Write sorting algorithm (fast sorting, heap sorting)
data structure
- Does Bloom Filter understand?
Algorithm and data structure interview analysis
Design questions
- If there are 1 billion numbers, there is only one duplicate, and the memory can only hold 500 million numbers, how to find this duplicate number?
- How to design a spike system (server, database, distributed)? Design of distributed system?
- There is a server dedicated to receiving a large number of requests, how to design it?
- If you let you design your own RPC framework, how would you design it?
- How can a stackoverflow error appear quickly?
other problems
- Self introduction.
- Talk about the highlights of your project.
- Draw an architecture diagram of your project.
- Does Restful understand? Simply talk about my understanding of it. What if I want to return a boolean data?
Summary of experience
- Interview more, don't be afraid of failure, sum up more experience.
- Prepare as early as possible, whether it's before the job search, before the interview or after the interview.
- Be familiar with your resume.
- Telephone and video interviews are common, so prepare before the interview.
- adhere to! Although the offer may be late, as long as you don't give up, you will definitely not be absent.
Answer get
I have compiled the answers to these interview questions into a Java interview document
If you need information, please click here to get it for free!
Java Interview Document
Java Interview Document
There is a detailed knowledge point below each chapter