🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Spring Boot Basics: all 10 questions

Quiz: Spring Boot Basics · Question 5 of 10

Why does a Spring Boot jar not need a separately installed Tomcat?

Why does a Spring Boot jar not need a separately installed Tomcat?

  1. A.It uses the JDK's built-in web server
  2. B.The server is embedded inside the application
  3. C.Spring Boot apps can't serve HTTP
  4. D.Maven starts Tomcat during packaging
Answer & explanation

Correct answer: The server is embedded inside the application

java -jar starts your app together with its embedded server.

Can you get the rest right without peeking?

Take the timed Quiz: Spring Boot Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →