0% found this document useful (0 votes)
15 views2 pages

Theo Adv Java

The document discusses the SOLID principles in software design, emphasizing their importance for maintainability and scalability in object-oriented programming. It also covers Java frameworks, comparing monolithic and microservices architectures, and highlights key Spring annotations and JPA functionalities. Additionally, it addresses the use of relationships and cascading operations in JPA, providing insights into best practices for Java application development.

Uploaded by

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

Theo Adv Java

The document discusses the SOLID principles in software design, emphasizing their importance for maintainability and scalability in object-oriented programming. It also covers Java frameworks, comparing monolithic and microservices architectures, and highlights key Spring annotations and JPA functionalities. Additionally, it addresses the use of relationships and cascading operations in JPA, providing insights into best practices for Java application development.

Uploaded by

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

1.

What are the SOLID principles, and why are they important in software
design?
2. How do the SOLID principles promote maintainability and scalability in
object-oriented programming?
3. Define the Single Responsibility Principle (SRP) and explain its
importance in object-oriented design.
4. What is the Open/Closed Principle? Explain how it is applied in Java.
5. Define the Liskov Substitution Principle and explain its role in
inheritance.
6. What is the Interface Segregation Principle, and how does it relate to
interface design in Java?
7. What is the Dependency Inversion Principle, and how does it differ from
dependency injection?
8. How can SOLID principles be used together to improve the design of a
large Java project?

1. What are the advantages of using a Java framework over developing


applications without one?
2. What are the key differences between monolithic architecture and
microservices architecture?
3. What are the advantages and disadvantages of monolithic systems compared
to microservices?
4. What is a Java Framework? Why is it used? Name some popular Java
frameworks used in web development.
5. What is the Spring Framework and why is it used?
6. Explain the difference between Spring Framework and Spring Boot.
7. What are the main features of the Spring Boot framework?

1. What is the purpose of the @Entity annotation in Spring JPA?


2. Explain the role of @Service in a Spring application. How does it differ
from @Controller and @Repository?
3. Explain the use of @PostMapping and @GetMapping annotations. How do they
relate to HTTP methods?
4. What is the difference between @RequestParam and @RequestBody in Spring?
Provide use cases for each.
5. How is @ModelAttribute used in Spring MVC? What is its role in binding
request parameters to model objects?
6. What is the role of JPA in connecting a Spring application to a MySQL
database?
7. What advantages does JpaRepository offer over traditional DAO pattern
implementation in Spring applications?
8. Compare the different values set for spring.jpa.hibernate.ddl-auto (e.g.,
none, create, create-drop, update). When should each be used?

1. What is the purpose of @Entity and @Table annotations in Spring Boot JPA?
2. What is the difference between @Embedded and @Embeddable annotations?
Explain with an example.
3. How does the @OneToOne relationship work in JPA, and when should you use
it?
4. What is CascadeType in JPA, and what are some common cascade types
available?
5. Explain the difference between FetchType.LAZY and FetchType.EAGER with
examples.
6. What is the purpose of @JoinColumn, and how does it work in a JPA
relationship?
7. Differentiate between @OneToOne and @OneToMany relationships in JPA.
8. What are the benefits of using an embedded class in an entity?
9. How does JPA handle cascading operations on child entities when
CascadeType.ALL is used?
10. When would you use @OneToOne, @OneToMany, @ManyToOne, @ManyToMany in a
real-world project? Provide an example.

You might also like