JD.com (Java backend) interview summary

Go in and make a set first.

Then came three rounds of technical interviews. Asked for three hours. . . .

The questions asked by the three people are overlapping, and there is no order in which they generally think and ask. The records below are summarized by category

 

'1. Written test

1, the basic characteristics of object-oriented

2. The difference between String, StringBuffer and StringBuilder

3. What are the ways to create threads, which one do you like best, and why?

4. How to prevent SQL injection

5. Under what circumstances does the index fail

6. Write a singleton pattern

7. How is SpringIOC and AOP implemented? What are the application scenarios

8. Tell me about the abnormalities you often see, under what circumstances will they appear, and how to solve them

9. The difference between arrayList and linkedList.

 

The following is a summary of the technical aspects of the three rounds. Not once! ! !

1. Spring

1. How is AOP implemented?

2. What kind of agent

3. The difference between dynamic proxy and static proxy

4. The difference between JDK dynamic proxy and Cglib dynamic proxy

5. How Cglib dynamic proxy is implemented

 

Second, the virtual machine JVM

1. Tell me when to trigger garbage collection.

2. How is the virtual machine memory allocated?

3. Which memory overflows can occur in each memory area?

4. What is the difference between memory overflow and memory leak?

5. How is the heap divided for garbage collection?

6. Talk about the garbage collection strategy of each partition.

7. How to judge that an object is useless and needs to be recycled.

8. What are the advantages of the G1 garbage collector.

9. What other garbage collectors are there? understood?

 

10. Will the virtual machine lock the direct memory? , will the operating system take it away from him?

11. Calling the bottom c code through JNI to draw a block of memory does this memory belong to the category of virtual machine management?

 

3. Multithreading

1. Which instance do you use if you use a thread pool in the way of creating threads?

2. What are the common parameters in the constructor of ThreadPoolExecutor?

3. What is the concept of core thread?

4. What is the general implementation of the work queue?

5. The difference between ArrayListBlockingQueue and LinkedListBlockingQueue

6. Talk about the working process of the thread pool.

7. When the thread is saturated, what should be used for the rejected thread.

8. What other Handlers are there?

 

9. What is the use of volatile.

10. How does volitile ensure visibility. how to ensure order

 

11. How to use synchronized

12. Where do you use the code you wrote? Not counting the singleton module of the double-checked lock you just wrote.

13. Why is this singleton double-checked lock written like this?

 

14. What are the states of java threads

15. Do you understand ThreadLocal, when to use it, and talk about its internal implementation.

 

4. Mysql

1. The isolation level of the transaction?

2. Which is Mysql default?

3. Will hallucinations occur?

4. Explain the gap lock to me

5. What is the difference between InnoDB engine and MyISAM?

6. Why count(*) is better for MyISAM. How is MYISAM implemented internally.

 

7. Do you understand MVCC? Tell me how to do it.

 

8. Talk about clustered indexes

9. What is the secondary index?

10. When using the secondary index, should it be based on the secondary index or by the cluster (I didn't understand this)

 

5. Computer network

1. How does tcp ensure the accuracy of the transmitted content?

2. What are the OSI seven-layer model and five-layer model?

3. Talk about the ping process and what protocol is used.

4. What is a scoket?

5. How much do you know about network programming?

6. What are the HTTP status codes? What do 404, 500, and 302 specifically mean?

 

6. Redis

1. Redis has several storage structures

2. What are the characteristics of his storage structure and what optimizations have been made.

3. How long do you set the cache expiration time when using redis?

4. Do you understand Redis master-slave replication?

5. Different clustering methods, how his data is distributed.

6. Put a Null into the key, and call jedis's key.len to return what (I didn't hear it clearly)

 

7. Data Structures and Algorithms

1. What are the sorts?

2. Talk about quick sort and heap sort, and write

3. Talk about dynamic programming

4. Give you a bunch of change for 5 cents, 1 yuan, 2 yuan, and 10 yuan to make 100. How many options are there? How to do it

5. Also know what algorithm.

 

8. Operating system

1. Do you understand IO multiplexing?

2. A brief introduction to NIO

 

九、Slor

1. What is the most basic data structure in Slor

 

10. Java Basics

1. How is StringBuilder implemented internally, what is the length of the initial character array, and how to expand

2. The initial length of ArrayList and the initial length of HashMap.

3. HashMap perturbation function

4. What are the differences between HashMap1.8 and before.

5. Talk about the red-black tree.

6. What are the application scenarios of red-black trees and what are they mainly used for?

 

7. How to release an object in Java code

 

Eleven, SVN

1. How does SVN compare the differences.

 

12. Front end

1. Do you understand CSS3?

2. Javascript closures.

 

Thirteen, Linux

1. How to check who is occupying port 80

 

14. Mybatis

1. Why write a Dao interface in Mybatis?

2. Can the query method in XML be obtained through an instance (I didn’t understand this)

 

 

The problem description above may have some, but not all, problems. To be honest, I asked too many questions, I can't remember clearly. . . . .

I didn't write any specific questions about the project I did. It is of little use for your reference. . . . . . .

The interview content generally asks you what you pull out, and then asks what is written on your resume. Will not ask boundless. So be responsible for your resume.

 

And the previous two rounds of phone interviews.

phone interview 1

 

phone interview 2

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325340576&siteId=291194637