Multiple choice technology architecture

Which of the following archive files can be deployed in a Web Server?

  1. jar

  2. war

  3. jar, war

  4. jar, war, ear

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

JAR (Java Archive) files contain Java libraries and classes. WAR (Web Application Archive) files are specifically designed for web applications and contain web components like servlets, JSPs, HTML, etc. EAR (Enterprise Archive) files are for J2EE enterprise applications deployed to application servers. Both JAR and WAR files can be deployed in appropriate web servers or servlet containers, making option C correct.