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 )

Question: What is a Hidden Comment in JSP?

What types of comments are available in the JSP?

Interview Question: What is abstract schema?

Tell me something about J2EE component?

Interview Question: Do ActionForms have to be true JavaBeans?

The output of System.out.println(5<<2) in Java

What is the difference between Session Bean and Entity Bean?

What is the difference between jsp:include page and @ include file?

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

Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

What is Collection API?

Interview Question: Who wrote Struts?

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

What is the difference between JTS and JTA?

Why J2EE is suitable for the development of distributed multi-tiered enterprise applications?

Latest Articles (in Interview)