Font size
WorksheetsJAVA Developer
Total questions: 30
Worksheet time: 30mins
1. Which of the following is not a core interface of Hibernate?
a) Configuration
b) Criteria
c) SessionManagement
d) Session
2. Which of the following methods hits database always?
a) load()
b) loadDatabase()
c) getDatabase()
d) get()
3. Which of the following is not an advantage of Hibernate Criteria API?
a) Allows to use aggregate functions
b) Cannot order the result set
c) Allows to fetch only selected columns of result
d) Can add conditions while fetching results
4.Which ways are used by the Log4j and Logback frameworks in hibernate framework to support logging?
a. By log4j.xml file
b. By log4j.properties
c. Both A & B
d. None of the above
5.We need to specify @Inheritance(strategy=InheritanceType.JOINED) in the parent class and @PrimaryKeyJoinColumn annotation in the subclasses.
a. True
b. False
6.Abbreviate the term HQL?
a. Hibernate Queue Language
b. Hibernate Query Language
c. Hipher Query Language
d. None of the above
7.Which of the following is NOT a mapping association used in Hibernate?
A. Many-to-Many Association
B. One-to-Many Associationcorrect
C. One-to-One Association
D. None
8.Which of these simplifies an Object Relational Mapping tool?
A. Data creation
B. Data manipulation
C. Data access
D. All mentioned above
What is Spring Framework used for?
Creating graphical user interfaces
Managing database schemas
Building and managing enterprise applications
Generating test data
What is the core container module in the Spring Framework?
Spring Boot
Spring Web
Spring MVC
Spring IoC
What is the purpose of Spring Boot?
To provide a lightweight container for Spring applications
To simplify the configuration and deployment of Spring applications
To enhance the performance of Spring applications
To replace the Spring Framework entirely
Which embedded web server is supported by default in Spring Boot?
Tomcat
GlassFish
WildFly
Jetty
What is the purpose of the @Autowired annotation in Spring?
It defines a new bean
It injects dependencies automatically
It configures database connections
It specifies URL patterns
Which file is commonly used for configuring Spring beans in XML format?
applicationContext.xml
spring-beans.xml
beans-config.xml
spring-context.xml
Which Spring module provides support for transaction management?
Spring AOP
Spring Data
Spring Transaction
Spring ORM
What is the primary role of the Spring Boot Starter modules?
To create Spring beans
To manage application properties
To configure the database
To simplify dependency management
What does the term "Inversion of Control" (IoC) refer to in Spring?
A control statement in programming logic
A design pattern for creating classes
The process of controlling hardware devices
The management of object dependencies by a container
Which of the following is a microframework built on top of the Spring Framework?
Spring Data
Spring Boot
Spring Security
Spring Cloud
