Programming Tutorials

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

By: Ash in Interview Tutorials on 2008-08-13  

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.

 

 

 

 





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

Explain garbage collection?

Interview Question: Why does EJB needs two interfaces(Home and Remote Interface)?

Getting started with Interview

Interview Question: What about JSTL and JavaServer Faces ?

What is the difference between Session Bean and Entity Bean?

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

Interview Question: How do I install Struts?

What is the difference between JTS and JTA?

What is difference between Java Bean and Enterprise Java Bean?

Is Iterator a Class or Interface? What is its use?

Question: What is an Expression tag in JSP?

Interview Question: What is Message Driven Bean?

Interview Question: What is difference between EJB 1.1 and EJB 2.0?

Interview Question: What is the difference between sessioncontext and entitycontext?

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

Latest Articles (in Interview)