HOW MANY OF YOU WANNA LEARN PYTHON AS MOST OF US ARE FREE NOW
Anonymous Poll
67%
Yes wanna learn
33%
No π ab load ni le sakta
Java Hyd Team
HOW MANY OF YOU WANNA LEARN PYTHON AS MOST OF US ARE FREE NOW
Those who wanna learn let us know with your details will plan for you
If you can share your resume score of more than 80% we can try for mass Hiring
Java Hyd Team
SRS_Social Travel App.pdf
After your project is done do make one pdf or ppt like this to introduce your project in a good manner during the interview
Java Hyd Team
Photo
Don't write handler adaptor rest everything is same just replace everything with your file name
Q3.) What is IOC & IOC Lifecycle ?
A3.) it is a design pattern that allows program control to be inverted
or
transfer from traditional in-process control structure to separate service provider .
LifeCycle of IOC
1. Initialization :- IOC container is initialised and configured.
2. Binding :- Components are registered with container & can be specifying interfaces
.
3. Resolution :- Dependencies of the components are resolved and the appropriate
instance is created
4. Invocation :- Container invokes specific methods of the components.
5. Destruction :- Component destroyed & restore released
A3.) it is a design pattern that allows program control to be inverted
or
transfer from traditional in-process control structure to separate service provider .
LifeCycle of IOC
1. Initialization :- IOC container is initialised and configured.
2. Binding :- Components are registered with container & can be specifying interfaces
.
3. Resolution :- Dependencies of the components are resolved and the appropriate
instance is created
4. Invocation :- Container invokes specific methods of the components.
5. Destruction :- Component destroyed & restore released
Q5.) What is dependency Injection and Types
A5.) a class receives instances of object it depends upon external
source rather than creating them itself .
this allows class to be independent of how the object
it depends on are created & makes code easier to maintain test
Rules of DI
1. Constructor-based Dependency Injection:- in this dependent object is provided
as the parameter in the constructor of class .
it is provided when class is instantiated.
2. Setter-based Dependency Injection :- dependent object is provided in class
through setter methods
this is useful when dependency is optional or when it can be changed even
after class is instantiated
3. Interface-based Dependency Injection :- defined some methods that must be
implemented by dependent objects
this is useful when class needs to be decoupled from dependent objects
allowing it into different implementations of dependent objects
4. Autowiring Dependency Injection :- this injection in spring
framework enables you to inject the object dependency implicitly.
It internally uses setter or constructor injection.
Autowiring can't be used to inject primitive and string values. It works with
reference only
A5.) a class receives instances of object it depends upon external
source rather than creating them itself .
this allows class to be independent of how the object
it depends on are created & makes code easier to maintain test
Rules of DI
1. Constructor-based Dependency Injection:- in this dependent object is provided
as the parameter in the constructor of class .
it is provided when class is instantiated.
2. Setter-based Dependency Injection :- dependent object is provided in class
through setter methods
this is useful when dependency is optional or when it can be changed even
after class is instantiated
3. Interface-based Dependency Injection :- defined some methods that must be
implemented by dependent objects
this is useful when class needs to be decoupled from dependent objects
allowing it into different implementations of dependent objects
4. Autowiring Dependency Injection :- this injection in spring
framework enables you to inject the object dependency implicitly.
It internally uses setter or constructor injection.
Autowiring can't be used to inject primitive and string values. It works with
reference only
Q11.) StereoType annotations & use ?
A11.) it is used to define & classify type of classes , fields & methods
it can be used to define / improve code readability & maintainability & to ensure that code elements are used properly.
it can be used to apply common behaviour such as applying security or logging ,across multiple elements examples of stereotype annotations in springboot
1. @Component: This stereotype annotation is used to mark a class as a component. It is used to indicate that a class is a candidate for auto-detection by Springβs component scanning mechanism.
2. @Service: This stereotype annotation is used to mark a class as a service. It is used to indicate that a class is a business service class.
3. @Repository: This stereotype annotation is used to mark a class as a repository. It is used to indicate that a class is a data access object.
4. @Controller: This stereotype annotation is used to mark a class as a controller. It is used to indicate that a class is a web controller class.
5. @RestController: This stereotype annotation is used to mark a class as a rest controller. It is used to indicate that a class is a web rest controller class.
A11.) it is used to define & classify type of classes , fields & methods
it can be used to define / improve code readability & maintainability & to ensure that code elements are used properly.
it can be used to apply common behaviour such as applying security or logging ,across multiple elements examples of stereotype annotations in springboot
1. @Component: This stereotype annotation is used to mark a class as a component. It is used to indicate that a class is a candidate for auto-detection by Springβs component scanning mechanism.
2. @Service: This stereotype annotation is used to mark a class as a service. It is used to indicate that a class is a business service class.
3. @Repository: This stereotype annotation is used to mark a class as a repository. It is used to indicate that a class is a data access object.
4. @Controller: This stereotype annotation is used to mark a class as a controller. It is used to indicate that a class is a web controller class.
5. @RestController: This stereotype annotation is used to mark a class as a rest controller. It is used to indicate that a class is a web rest controller class.
π1
Q13.) @ComponentScan:-it is used to detect & register components /beans as managed by Spring frameWork .
it is used to detect classes annotated with @Component , @Service ,@Repository & @Controller
@Configuration:- it is used to define bean definitions in application Context.
it is used to define beans & their properties as part of Spring Framework.
@Value :- it is used to inject literal values into fields ,methods & constructor
it is used to inject literal values in properties
@Required :- it is used to indicate the presence of a dependency for a bean .
it is used to indicate bean property must be configured in bean configuration file .
@Controller :- it is used on a class that provides web interfaces .
it is used to denote class as controller class & will
be detected automatically detected by spring framework
for Component Scan & managed as bean.
@Service :- it is used for class that contains business logic.
it is used to denote that the class is a service class
@Repository :- it is used to indicate that class is repository
it is used to mark class as DataAccess object.
it is used in combination with other annotation such as service & Component
@EnableAutoConfiguration :- automatically configuration all stereotype classes & manage springBoot entire cycle
it is used to detect classes annotated with @Component , @Service ,@Repository & @Controller
@Configuration:- it is used to define bean definitions in application Context.
it is used to define beans & their properties as part of Spring Framework.
@Value :- it is used to inject literal values into fields ,methods & constructor
it is used to inject literal values in properties
@Required :- it is used to indicate the presence of a dependency for a bean .
it is used to indicate bean property must be configured in bean configuration file .
@Controller :- it is used on a class that provides web interfaces .
it is used to denote class as controller class & will
be detected automatically detected by spring framework
for Component Scan & managed as bean.
@Service :- it is used for class that contains business logic.
it is used to denote that the class is a service class
@Repository :- it is used to indicate that class is repository
it is used to mark class as DataAccess object.
it is used in combination with other annotation such as service & Component
@EnableAutoConfiguration :- automatically configuration all stereotype classes & manage springBoot entire cycle