Interview topic sharing on April 18, 2023 (written test + interview)

Interview sharing of a listed company in Wuhan

1. Written test questions

1. What is the difference between "==" and "equals" methods?
2. Is it possible to issue a call to a non-static method from inside a static method and why?
3. What is the difference between Integer and int?
4. What is the difference between overloading and rewriting?
5. Can the constructor in C++ be overridden?
6. What is the difference between final, finally, and finalize?
7. What are the main collection classes of Java?
8. What are the aspects of object-oriented features?
9. What is the mechanism for realizing polymorphism in Java?
10. What is the difference between abstract class and interface?
11. How many types of streams are there in Java? JDK provides some abstract classes for each type of stream for inheritance. Please tell me which classes they are?
12. Write an instance of the singleton pattern.
13. Write a quick sort algorithm in Java or C/C++.

Second, the technical side

1. What is the difference between HashSet and LinkedHashSet?
2. What is the difference between Set and List in Java collections? What are the usage scenarios?
3. Tell me about the functions and implementation of the projects you were responsible for in the past.
4. Have you ever been in contact with Jquery? How do you use it?
5. What is the difference between in and exist in MySQL? What about union and union all?
6. For example, when operating the database, if the transaction of a is not submitted, and the transaction of b is operated, will there be any exception or error? Does it matter?
7. What is the difference between subquery and having in MySQL?
8. What is the difference between @Autowired and @Resource?
9. According to the layered annotations in the Spring framework, there are @Controller, @Service, @Repository, etc. If you use several other annotations in the controller layer, will it affect it?
10. What is the difference between Thread, Callable and Runnable? What is the difference between start and run?
11. The use of thread pool?
12. The principle of HashMap? Introduce the red-black tree
13. Do you understand the MySQL keywords? What does it mean? Such as like, in, exist, union, union all

3. Two aspects of business

1. What indexes are there? What does respectively mean? Usage scenario
2. The difference between TCP/UDP, HTTP, MQTT
3. MyBatis's dynamic sql splicing
4. What is the difference between @Autowired and @Resource?
5. What are the scopes of beans in Spring?
6. What is the difference between Set and List?
7. Has the project been deployed? Can you use Linux commands? Talk about a few commonly used
8. What is the command to copy a folder? Command to create multiple folders?
9. What does chmod mean? What does 777 mean?
10. Use the pipe character command to find port 8080 and kill it. How to write it? What does pkill mean?

Guess you like

Origin blog.csdn.net/qq_44723773/article/details/130225746