Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Spring Interview Questions, Study notes of Java Programming

Useful for Java students who has Spring framework knowledge before attending any interviews.

Typology: Study notes

2017/2018

Uploaded on 08/19/2018

sekharb
sekharb 🇮🇳

1 document

1 / 335

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Spring
Interview Questions
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Spring Interview Questions and more Study notes Java Programming in PDF only on Docsity!

Spring

Interview Questions

A 5 Hour Video Course

Covers 200+ Interview Questions about

Spring

Spring MVC

Spring Boot

JPA, Sprint Data, Spring Data JPA

Spring Web Services

Spring REST

Questions

What is loose coupling?

What is a Dependency?

What is IOC (Inversion of Control)?

What is Dependency Injection?

Can you give few examples of Dependency

Injection?

What is Auto Wiring?

Loose Coupling

@Component public class TodoBusinessService {

@Autowired TodoDataService dataService;// = new TodoDataService()

public TodoBusinessService(TodoDataService dataService) { this.dataService = dataService; }

public interface TodoDataService { List retrieveTodos(String user); }

Loose Coupling

@Component public class ComplexAlgorithmImpl {

@Autowired private SortAlgorithm sortAlgorithm;

public interface SortAlgorithm { public int[] sort(int[] numbers); }

public class QuickSortAlgorithm implements SortAlgorithm {

public class BubbleSortAlgorithm implements SortAlgorithm {

Inversion of Control

public class ComplexAlgorithmImpl {

BubbleSortAlgorithm bubbleSortAlgorithm = new BubbleSortAlgorithm();

@Component public class ComplexAlgorithmImpl {

@Autowired private SortAlgorithm sortAlgorithm;

IOC Container

Find Beans

Wire Dependencies

Manage Lifecycle of the Bean

IOC Container

@Component public class ComplexAlgorithmImpl {

@Autowired private SortAlgorithm sortAlgorithm;

@Component public class QuickSortAlgorithm implements SortAlgorithm {

public interface SortAlgorithm { public int[] sort(int[] numbers); }