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 )

Interview Question: What is ActionServlet?

Interview Question: Is there a particularly good IDE to use with Struts ?

Interview Question: What is Local client view in EJB?

Interview Question: What is the difference between find and select methods in EJB?

Question: How is the MVC design pattern used in Struts framework?

Interview Question: Who makes the Struts?

Interview Question: Why it is called Struts?

Interview Question: What is Action Class?

Interview Question: Write code of any Action Class?

Interview Question: What is Struts Validator Framework?

Interview Question: What is ActionForm?

Interview Question: Is Struts compatible with other Java technologies?

Interview Question: Do you have to credit Struts on your own website?

Interview Question: Does Struts include its own unit tests?

Interview Question: If the framework doesn't do what I want, can I request that a feature be added?

Latest Articles (in Interview)

Comment on this tutorial