Skip to content

Commit 8db6971

Browse files
authored
Update README.md
1 parent 3002ab3 commit 8db6971

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Looking forward to appear in Java Interview, here are the key Java Interview Que
2020
| 13 |[When to use Runnable interface Vs Thread class in Java?](https://github.com/aatul/Java-Interview-Questions-Answers/blob/master/README.md#13-when-to-use-runnable-interface-vs-thread-class-in-java) |
2121
| 14 |[What is the life-cycle of a servlet?](https://github.com/aatul/Java-Interview-Questions-Answers/blob/master/README.md#14-what-is-the-life-cycle-of-a-servlet) |
2222
| 15 |[Differences between ServletContext vs ServletConfig?](https://github.com/aatul/Java-Interview-Questions-Answers/blob/master/README.md#15-differences-between-servletcontext-vs-servletconfig) |
23+
| 16 |[Difference between SPRING CORE & SPRING BOOT?](https://github.com/aatul/Java-Interview-Questions-Answers/blob/master/README.md#16difference-between-spring-core--spring-boot) |
24+
2325

2426
**[Back to Top](https://github.com/aatul/Java-Interview-Questions-Answers/blob/master/README.md#java-interview-questions-answers)**
2527

@@ -321,7 +323,7 @@ There are 5 stages in the lifecycle of a servlet:
321323

322324
### 15. Differences between ServletContext vs ServletConfig?
323325

324-
| Serialization | Deserialization |
326+
| ServletConfig | ServletContext |
325327
| ------------- |-------------|
326328
|Servlet config object represent single servlet|It represent whole web application running on particular JVM and common for all the servlet|
327329
|Its like local parameter associated with particular servlet|Its like global parameter associated with whole application|
@@ -333,4 +335,40 @@ There are 5 stages in the lifecycle of a servlet:
333335

334336
---
335337

338+
### 16. Difference between SPRING CORE & SPRING BOOT?
339+
340+
**Spring Framework:**
341+
*Spring is one of the most widely used Java EE Frameworks for building applications.
342+
*For the Java platform, the Spring framework provides an elaborate programming and configuration model.
343+
*It aims to simplify the Java EE development and helps developers be more productive at work.
344+
*It can be used at any kind of deployment platform.
345+
*One of the major features of the Spring framework is the dependency injection.
346+
*It helps make things simpler by allowing us to develop loosely coupled applications.
347+
348+
**Spring Boot:**
349+
*While the Spring framework focuses on providing flexibility to you, Spring Boot aims to shorten the code length and provide you with the easiest way to develop a web application.
350+
*With annotation configuration and default codes, Spring Boot shortens the time involved in developing an application.
351+
*It helps create a stand-alone application with less or almost zero-configuration.
352+
*Autoconfiguration is a special feature in Spring Boot.
353+
*It automatically configures a class based on that requirement.
354+
355+
356+
| Spring | Spring Boot |
357+
| ------------- |-------------|
358+
|Spring Framework is a widely used Java EE framework for building applications.|Spring Boot Framework is widely used to develop REST APIs.|
359+
|It aims to simplify Java EE development that makes developers more productive.|It aims to shorten the code length and provide the easiest way to develop Web Applications.|
360+
|The primary feature of the Spring Framework is dependency injection.|The primary feature of Spring Boot is Autoconfiguration. It automatically configures the classes based on the requirement.|
361+
|It helps to make things simpler by allowing us to develop loosely coupled applications.|It helps to create a stand-alone application with less configuration.|
362+
|The developer writes a lot of code (boilerplate code) to do the minimal task.|It reduces boilerplate code.|
363+
|To test the Spring project, we need to set up the sever explicitly.|To test the Spring project, we need to set up the sever explicitly.|
364+
|It does not provide support for an in-memory database.|It offers several plugins for working with an embedded and in-memory database such as H2.|
365+
|Developers manually define dependencies for the Spring project in pom.xml.|Spring Boot comes with the concept of starter in pom.xml file that internally takes care of downloading the dependencies JARs based on Spring Boot Requirement.|
366+
|Spring is an open-source lightweight framework widely used to develop enterprise applications.|Spring Boot is built on top of the conven
367+
tional spring framework, widely used to develop REST APIs.
368+
|
369+
370+
**[Back to Top](https://github.com/aatul/Java-Interview-Questions-Answers/blob/master/README.md#java-interview-questions-answers)**
371+
372+
---
373+
336374
Wish you all the best.

0 commit comments

Comments
 (0)