Posted in 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…

Continue Reading... How Spring detects what beans (components) are available in an application during component scanning process?
Posted in Interview Questions

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…

Continue Reading... How component scanning works in Spring?
Posted in Interview Questions

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…

Continue Reading... What are Spring framework modules?
Posted in Interview Questions

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…

Continue Reading... What is Spring Framework, Features and Advantages?
Posted in Interview Questions

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…

Continue Reading... What is Hibernate mapping file?
Posted in Interview Questions

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…

Continue Reading... What is Hibernate configuration file?
Posted in Interview Questions

How do you create SessionFactory in Hibernate?

To create SessionFactory object in Hibernate follow below steps:

Continue Reading... How do you create SessionFactory in Hibernate?
Posted in Interview Questions

What are the core interfaces in Hibernate framework?

Core Interfaces in Hibernate are: Session Interface SessionFactory Configuration Transaction Query Criteria

Continue Reading... What are the core interfaces in Hibernate framework?
Posted in Interview Questions

Java is Pass by Value of Pass by Reference?

Java is Pass by Value.

Continue Reading... Java is Pass by Value of Pass by Reference?
Posted in Interview Questions

What is instanceof keyword?

We can instanceof keyword to check if an object belongs to the same class or not.

Continue Reading... What is instanceof keyword?