You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39-1Lines changed: 39 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ Looking forward to appear in Java Interview, here are the key Java Interview Que
20
20
| 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)|
21
21
| 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)|
22
22
| 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
+
23
25
24
26
**[Back to Top](https://github.com/aatul/Java-Interview-Questions-Answers/blob/master/README.md#java-interview-questions-answers)**
25
27
@@ -321,7 +323,7 @@ There are 5 stages in the lifecycle of a servlet:
321
323
322
324
### 15. Differences between ServletContext vs ServletConfig?
323
325
324
-
|Serialization|Deserialization|
326
+
|ServletConfig|ServletContext|
325
327
| ------------- |-------------|
326
328
|Servlet config object represent single servlet|It represent whole web application running on particular JVM and common for all the servlet|
327
329
|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:
333
335
334
336
---
335
337
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)**
0 commit comments