Java based

1. The difference between overloading and overwriting.

What is the difference between a String and a StringBuffer and a StringBuilder? Why is String immutable?

3, automatic packing and unpacking.

4, == = equals

5. Final keyword.

6, Object class common methods.

Exception handling in Java.

8, access to the two commonly used keyboard input methods.

What is the difference between an interface and an abstract class?

JVM

1. Is there a memory leak in Java?

Describe how the JVM loads Class files.

What is the Tomcat class loading mechanism?

Class loader parent delegate model mechanism?

5, garbage collection FAQ.

What is GC? Why GC?

7. What is the Java garbage collection mechanism?

8. How to determine if an object is alive?

9, the advantages and principles of garbage recycling, and consider the two recycling mechanisms?

What are the methods of garbage collection in Java?

11. Describe your understanding of performance evaluation and test metrics.

12. What are the common performance optimization methods?

Collections framework

Arraylist and LinkedList.

ArrayList is different from Vector.

3. Low-level implementation of HashMap.

4, The difference between HashMap and Hashtable.

5. Why is the length of HashMap a power of 2?

6. HashMap multithreading causes an infinite loop.

7. The difference between HashSet and HashMap.

ConcurrentHashMap and Hashtable.

ConcurrentHashMap Thread-safe implementation.

Multithreading and concurrency

1. AQS Principle.

2. The way AQS shares resources.

3. AQS uses template method mode at the bottom.

4, say what you know about synchronized.

5. Describe how you use the keyword synchronized in your project.

6, talk about the basic principle of synchronized keyword.

8, talk about JDK1.6 after the synchronized keyword base optimization, can you introduce these optimization in detail?

9. Talk about the difference between synchronized and ReenTrantLock.

10. Tell the difference between synchronized and volatile.

11. Why use thread pools?

12, implement the difference between Runnable interface and Callable interface.

13. What is the difference between executing () and submitting ()?

How to create a thread pool.

15. Introduce the Atomic class.

16. What are the four atomic classes in JUC packages?

17. Talk about using AtomicInteger.

18. Can you give me a brief introduction to the principle of AtomicInteger?

The last

In view of the recent many people in the interview, I have also sorted out quite a lot of interview materials, there are also other big factories. I hope I can help you.

The latest interview questions

The answers to the above interview questions are documented in notes. Also sorted out some interview materials & the latest collection of some big factory interview questions in 2020 (all sorted into a document, a small part of the screenshots), there is a need to pay attention to the public below to obtain their own

 

Updated ebook

The latest arrangement of large factory interview documents

The above is all the content of this article, I hope to help you learn, but also hope that you support. One key three link oh!

Thanks for watching!