Java Hyd Team
746 subscribers
986 photos
39 videos
670 files
690 links
https://teamhydteam.my.canva.site/

Can visit us on our website 😊
Still working on it 😊
Download Telegram
otations, XML or Java configuration. It makes it easier to maintain and manage applications, as well as reducing code complexity.

Q10.) what is qualifier annotation?

Qualifier annotation is an annotation used in the Spring Framework for more specific bean definition. It is used to create an alias for a bean so it can be autowired easily. It is used to specify a specific implementation of an interface or class.
it is used to add a level of type safety to code
it is used to provide additional info about a variables , methods or class.

Q11.) scope and bean scope modes

Bean Scopes

1. Singleton: The singleton scope is the default scope used in the Spring framework. It creates a single instance of the bean and all requests for that bean use the same instance.

2. Prototype: The prototype scope creates a new instance of the bean every time a request is made.

3. Request: The request scope creates a new instance of the bean for each HTTP request.

4. Session: The session scope creates a new instance of the bean for each HTTP session.

5. Global Session: The global session scope is similar to the session scope, except it is shared across different servlet contexts.


Q12.) what is stereotype annotations and use

Stereotype annotations are a type of annotation used in Java programming to indicate a particular design pattern or programming style. They provide a way to group related classes and help define the roles of each component. Examples of stereotype annotations include
@Component,
@Service, and
@Repository.

These annotations are used to indicate a type of role for a given class, for example an
@Service annotation might be used to indicate a class that provides a business service, while an @Repository annotation might be used to indicate a class that provides data access.

Q13.) what is datatype annotation and use

Data type annotation is the process of assigning a data type to a particular piece of data. This can be done for a variety of reasons such as to ensure data integrity and accuracy, to improve performance, and to simplify programming. Data type annotation is used in many programming languages, such as Java, C++, and Python, to indicate the type of data that is expected to be stored in a particular variable or data structure. It can also be used to provide information to a compiler so that it can tailor code generation to accommodate the data type.



Q14.) @ComponentScan:-

ComponentScan annotation define the locations to search for the annotated components/classes:

@ComponentScan annotation is used to tell Spring where to look for other components, configurations and services in the application. It helps Spring to locate components and services inside a particular package or packages. It also helps Spring to create a dependency graph in the application. The @ComponentScan annotation can be used with the basePackages attribute to specify the packages to scan or with the basePackageClasses attribute to specify the classes to scan.

@Configuration :-

Configuration annotation is an annotation used in Java-based configuration to define the classes used in the configuration. It is used to define the classes that are to be used as beans and the configuration information that is needed to configure the beans. Configuration annotation is used in combination with the other annotations such as Component, Bean, and ComponentScan to specify the bean classes and their configuration information.


@value:-

A value annotation is a form of annotation that is used to provide information about the value of a particular type or element in a software system. Value annotations are typically used to provide information about the meaning or purpose of the element, such as the expected range of values, allowed values, or the expected format of a value. They can also be used to provide information about the impact of changing the value of a particular element.

1. @Component: This annotation indicates that a class is a β€œcomponent”. It is used to indicate that the class
serves a specific purpose in the application.

2. @Autowired: This annotation tells Spring to inject an instance of the specified bean into the annotated field.

3. @Service: This annotation is used to denote a service class. It is used to indicate that the class is responsible for providing some sort of service to the application.

4. @Repository: This annotation is used to denote a data access object. It is used to indicate that the class is responsible for data access operations.

5. @RequestMapping: This annotation is used to map a specific HTTP request to a particular method in a controller class.

6. @Controller: This annotation is used to indicate that a class is a controller. It is used to indicate that the class is responsible for handling requests from the view layer.


Q15.) spring orm and jdbc (implemented methods and persistent methods)

Spring ORM:

Spring ORM is a data access framework that provides an abstraction over JDBC and other ORM frameworks. It offers a consistent programming model for accessing data from relational databases, NoSQL databases, and other data sources. It provides a simple way to access and query data, and can be used to reduce the amount of code needed to access a database.

Implemented methods:

β€’ Data Access Object (DAO) - provides an interface for accessing data from the database.
β€’ Query Interface - provides a way to create, execute, and manage queries.
β€’ Transaction Management - provides an abstraction layer for managing transactions.
β€’ Object-Relational Mapping (ORM) - provides a way to map Java objects to database tables.
β€’ Object/Relational (O/R) Metadata Mapping - provides a way to define relationships between Java objects and database tables.
β€’ Data Access Template - provides a way to easily access and manipulate data in the database.

Persistent Methods:

β€’ Create - allows you to create a new entry in the database.
β€’ Retrieve - allows you to retrieve an existing entry from the database.
β€’ Update - allows you to modify an existing entry in the database.
β€’ Delete - allows you to delete an existing entry from the database.
β€’ Save - allows you to save an existing entry in the database.
β€’ Merge - allows you to merge two existing entries in the database.

Q16.) mvc in spring and springboot

Spring MVC is a web framework built on the core features of the Spring framework. It is a component of the Spring Framework for building web applications and provides an alternative to the Java Enterprise Edition (JEE) framework. Spring MVC provides an easy way to create web applications. It is designed to be extensible and adaptable for a variety of applications, from small personal projects to large enterprise applications.

Spring Boot is a framework for building web applications on top of the Spring Framework. It simplifies the development of applications by providing a ready-made configuration for most common web development tasks. Spring Boot makes it easy to create stand-alone, production-grade Spring-based applications that you can "just run". It also provides a way to package and deploy applications to different environments, such as a cloud platform.

Q17.) spring mvc execution flow

1. User sends an HTTP Request to a web browser.

2. DispatcherServlet, receives the request and checks the web.xml file to identify the appropriate Controller.

3. The DispatcherServlet maps the request to the appropriate Controller and calls its handler methods.

4. The Controller processes the request and generates the Model or view object.

5. The view object is passed to the appropriate View Resolver.

6. The View Resolver identifies the appropriate View Component and prepares the output.

7. The DispatcherServlet passes the output to the web browser.
What is pom.xml ??
What is dependency injection?
In how many ways dependency injection done ??
What is pojo poji bean ??
What is configuration how many ways we can achieve
Setter injection getter injection construction injection
Explain annotations
Spring life cycle
Bean life cycle
Explain stereotype annotations
What is component scan
MVC architecture
Model view controller
What is data binding??
What is IOC ?
Explain different spring containers
Explain path param
Response param
Response body
Response param / body
Tight loose coupling??
Come to class
Forwarded from SathyaReact
Assignment 2:
Forwarded from SathyaReact
Assignment 3:
Forwarded from SathyaReact
Ping us for any support regards concept n coding

Just by clicking @stockkida
DATA FLOW
πŸ‘1
πŸ‘1
Whatever we share here please don't share to anyone in institute because some people are telling our names and we don't want these things else let us know we will not share any answers to this channel
If you have issues tell us because we are providing if we are getting these with outside people we don't enjoy that