0% found this document useful (0 votes)
3 views

Java Spring Network

The document outlines the final assessment criteria for a Java Spring Network project in the Naan Mudhalvan Arts & Science program, detailing sections for LMS completion, project presentation, and a viva. It includes specific criteria for evaluation, such as problem definition, implementation, innovation, and user experience, totaling a maximum score of 75. Additionally, it provides a list of common viva questions and answers related to Spring Boot, REST APIs, Hibernate, Maven, and Java programming concepts.

Uploaded by

samuel.alm4545
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Java Spring Network

The document outlines the final assessment criteria for a Java Spring Network project in the Naan Mudhalvan Arts & Science program, detailing sections for LMS completion, project presentation, and a viva. It includes specific criteria for evaluation, such as problem definition, implementation, innovation, and user experience, totaling a maximum score of 75. Additionally, it provides a list of common viva questions and answers related to Spring Boot, REST APIs, Hibernate, Maven, and Java programming concepts.

Uploaded by

samuel.alm4545
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Naan Mudhalvan – Arts & Science

Final Assessment - Even Semester 2024 -2025


Java Spring Network
S.No. Criteria Max Marks
1 Section A - LMS Completion Score 45
Section B-Project Presentation 20
2 Problem Definition & Solution Approach – Clearly defines
the problem and effectively applies Java Spring and networking 4
concepts to address it.
3 Implementation & Technical Execution – Demonstrates
proficient development of network-based functionalities using 4
Java Spring.
4 Innovation & Optimization – Showcases creative and efficient
4
integration of Java Spring with networking solutions.
5 Presentation & Communication – Delivers a clear, confident,
4
and well-structured explanation of the project.
6 User Interface & Experience– Ensures an intuitive, visually
4
appealing, and user-friendly design.
Section C
7 Viva 10
8 Total Score 75

Viva Questions
1. What is Spring Boot?
Answer: Spring Boot is a framework that simplifies Java application development by
providing pre-configured settings and reducing boilerplate code.
2. What is the difference between Spring and Spring Boot?
Answer: Spring is a broad framework for Java applications, while Spring Boot provides
pre-configured templates to simplify development.
3. What is a REST API?
Answer: A REST API (Representational State Transfer) allows communication between
client and server using HTTP methods like GET, POST, PUT, DELETE.
4. What is the difference between GET and POST requests?
Answer:

● GET: Retrieves data from the server.


● POST: Sends data to the server to create a new resource.

5. What is Hibernate?
Answer: Hibernate is an ORM (Object-Relational Mapping) framework that simplifies
database operations by mapping Java objects to database tables.
6. What are the types of Hibernate Mappings?
Answer:

● One-to-One (@OneToOne)

● One-to-Many (@OneToMany)

● Many-to-One (@ManyToOne)

● Many-to-Many (@ManyToMany)

7. What is the difference between Hibernate and JPA?


Answer:

● JPA is a specification (interface) for ORM in Java.

● Hibernate is an implementation of JPA.

8. What is Maven?
Answer: Maven is a build automation tool used for managing dependencies, compiling code,
running tests, and packaging Java applications.
9. What is the default build tool used in Maven?
Answer: Maven uses Apache Ant internally but follows a more structured lifecycle.
10. What are the types of Maven repositories?
Answer:

● Local Repository (~/.m2/repository/): Stores downloaded dependencies.

● Central Repository: Public repository hosted by Maven.

● Remote Repository: Custom repositories (e.g., Nexus, Artifactory).

11. What is Data Persistence?


Answer: Data persistence means storing data permanently so it can be retrieved and used
later, even after the application is closed or restarted. In software systems, data is often
persisted using databases (like MySQL, PostgreSQL, MongoDB, etc.).
12. What are Hibernate APIs?
Answer: Important Hibernate APIs include:

● SessionFactory: Configures Hibernate and manages Sessions.

● Session: Used to interact with the database.

● Transaction: Handles commit/rollback.

● Query: For executing HQL or native SQL.

● Criteria: For programmatic query building.

13. What is HQL?


Answer: HQL (Hibernate Query Language) is an object-oriented query language in
Hibernate. It queries entity names and fields, not table names and columns.
14. What is Lazy and Eager Fetching in Hibernate?
Answer:

● Lazy Fetching: Data is loaded only when needed (default).

● Eager Fetching: Data is loaded immediately, including related objects.

15. What is a Lambda Expression?


Answer:
A Lambda Expression is a short way to write anonymous functions in Java. It helps to
write cleaner and more concise code, especially when working with functional interfaces.
16. What is the difference between map() and flatMap() in Streams?
Answer:

● map(): Transforms each element into one element.

● flatMap(): Transforms each element into a stream, then flattens all streams into a
single stream.
17. What is Collectors class in Stream API?
Answer:
Collectors is a utility class providing methods like:

● toList()

● toSet()

● joining()
● groupingBy()

● partitioningBy()

18. What are the main features of the Spring Framework?


Answer:

● Dependency Injection (DI) and Inversion of Control (IoC).

● Aspect-Oriented Programming (AOP).

● Transaction Management.

● Integration with frameworks like Hibernate, JPA, etc..

● Support for building web applications (Spring MVC).


19. What is Dependency Injection (DI)?
Answer:
Dependency Injection is a design pattern where an object’s dependencies are injected by
the framework (Spring) rather than the object creating them itself.
20. What is a Bean in Spring?
Answer:
A Bean is an object that is created, managed, and controlled by the Spring IoC Container.
Beans are defined in configuration files (XML or Java Config) or through annotations
(@Component, @Service, etc.).

You might also like