Interview Question: What is the difference between EAR, JAR and WAR file?

By: Ash Printer Friendly Format    

Question:What is the difference between EAR, JAR and WAR file?

Answer:

J2EE defines three types of archives:

1. Java Archives (JAR) A JAR file encapsulates one or more Java classes, a manifest, and a descriptor. JAR files are the lowest level of archive. JAR files are used in J2EE for packaging EJBs and client-side Java Applications.

2. Web Archives (WAR) WAR files are similar to JAR files, except that they are specifically for web applications made from Servlets, JSPs, and supporting classes.

3. Enterprise Archives (EAR) ”An EAR file contains all of the components that make up a particular J2EE application.

 

 

 

 



Most Viewed Articles (in Interview )

Question: What is a Hidden Comment in JSP?

Interview Question: How do I install Struts?

Name the containers which uses Border Layout as their default layout?

What is similarities/difference between an Abstract class and Interface?

Interview Question: Is Struts compatible with other Java technologies?

Interview Question: Where can I get a copy of Struts?

Interview Question: Why aren't the Struts tags maintained as part of the Jakarta Taglibs project ?

Interview Question: What about JSTL and JavaServer Faces ?

Interview Question: Can i map more than one table in a CMP?

Interview Question: What is the difference between Message Driven Beans and Stateless Session beans?

Question: Explain the life-cycle methods in JSP?

Differentiate between .ear, .jar and .war files.

What do you understand by JTA and JTS?

Explain the user defined Exceptions?

Explain the new Features of JDBC 2.0 Core API?

Latest Articles (in Interview)

Comment on this tutorial