Skip to content
Sharp

Spring Core · interview question

Which command is used to run a compiled Spring Boot JAR file?

Multiple choiceMediumchapter-9-curatedpremiumspring-coreapplication-properties
Choose one answer
Answer and explanation

Correct answer

B. Java -jar myapp.jar

Why

To run a compiled Spring Boot JAR file, you use the standard Java command: java -jar myapp.jar. This command is used to execute JAR files with a main method.

Test yourself on Spring Core

A free test with instant, explained results. No account needed.

Start free test
All Spring Core questions →