Category: Interview Questions
How Spring detects what beans (components) are available in an application during component scanning process?
During the component scan, Spring Framework automatically detects classes annotated with @Component. By default, the bean instances of this class have the same name as…
How component scanning works in Spring?
Spring can automatically scan a package for beans if component scanning is enabled. @ComponentScan configures which packages to scan for classes with annotation configuration. @Configuration…
What are Spring framework modules?
Spring Framework modules are: Spring Core – A key module that provides fundamental parts of the framework, like IoC or DI (Spring Context) Spring AOP…
What is Spring Framework, Features and Advantages?
Spring Framework is a powerful lightweight application development framework used for Enterprise Java (JEE) Modular Framework Light Weight End to End Development Inversion of Control…
What is Hibernate mapping file?
Hibernate mapping file is used to define the entity bean fields and database table column mappings. We know that JPA annotations can be used for…
What is Hibernate configuration file?
Hibernate configuration file contains database specific configurations and used to initialize SessionFactory. We provide database credentials or JNDI resource information in the hibernate configuration xml…
How do you create SessionFactory in Hibernate?
To create SessionFactory object in Hibernate follow below steps:
What are the core interfaces in Hibernate framework?
Core Interfaces in Hibernate are: Session Interface SessionFactory Configuration Transaction Query Criteria
Java is Pass by Value of Pass by Reference?
Java is Pass by Value.
What is instanceof keyword?
We can instanceof keyword to check if an object belongs to the same class or not.