What is the difference between JAR and WAR files? | Eklavya Online

What is the difference between JAR and WAR files?

JAR files (Java ARchive) allows aggregating many files into one, it is usually used to hold Java classes in a library.

WAR files (Web Application aRchive) stores XML, java classes, and JavaServer pages for Web Application purposes.