This is the topic discussed during the last interview and is recorded.
Spring
-
- Why use spring?
-
- What are the benefits of IOC? What are the benefits of scalability?
-
- How to instantiate a bean?
-
- What is the difference between applicationcontext and beanfactory?
-
- How can I read external files through spring?
-
- Can bean IDS be repeated in the spring configuration file?
-
- What is automatic assembly and type check in spring?
-
- Can applicationcontext be loaded all at a time when multiple spring configuration files exist in the system? What should I do if there are duplicate IDs?
-
- What is AOP? What terms are involved and explained in AOP?
-
- How does spring implement AOP? Dynamic proxy?
Java Collection
-
- What is the difference between treeset and hashset?
-
- How is treeset sorted?
-
- What is the difference between comparable and comparator?
Java Io
-
- What is the difference between stream and Reader/writer?
-
- How to read a text file?
-
- How do I redirect system. Out to an external file?
-
- What is system. Out?
Java serialization
-
- How to serialize it?
- What is the role of the variables defined in the serializable interface?
-
- How does one implement deep copy through serialization?
-
- Serializable is a label interface. What is the function of this type of interface?
Java synchronization
-
- Why do I need to perform synchronization management?
-
- What does thread synchronization mean?
-
- How does Java implement synchronous management (for public members in thread objects )?
-
- If there are two groups of methods in a class, the methods in the group are mutually exclusive, and the methods in the group are concurrent, what should we do?
-
- How to Implement the thread pool?
Java exception
-
- What is the difference between checked exception and unchecked exception?
-
- How to create an unchecked exception?
-
- What is an abnormal translation? What is its role?
-
- In a multi-layer structure, how do I handle exceptions?
Java JDBC
- JDBC and transaction-related APIs (START, commit, and rollback )?
- JDBC APIs related to database connection pools?
Other
- What is the difference between string, stringbuffer, and stringbuilder?
- What is the structure of the tomcat configuration file? How to configure the database connection pool?
- When apache and tomcat are integrated, how does Apache communicate with tomcat?