Java interview questions (1)

Source: Internet
Author: User

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.