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.

 

 

 

 

Ask a Question



Most Viewed Articles (in Interview )

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

Question: What is a Hidden Comment in JSP?

What are types of J2EE clients?

What is difference between Java Bean and Enterprise Java Bean?

Interview Question: Why do we need Struts?

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

What is the difference between JTS and JTA?

What is Collection API?

What is the difference between jsp:forward and response.sendRedirect(url),?.

What is JSP Scriptlet?

Interview Question: What is Action Class?

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

Interview Question: How do I install Struts?

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

Interview Question: What is ActionServlet?

Latest Articles (in Interview)

Comment on this tutorial