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 )

What is Collection API?

Question: Difference between forward and sendRedirect in JSP?

Explain garbage collection?

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

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

What is the difference between Session Bean and Entity Bean?

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

Interview Question: Do ActionForms have to be true JavaBeans?

Question: How would you go about analyzing performance of an application?

Interview Question: Does Struts include its own unit tests?

What are Access Specifiers available in Java?

What is the difference between interface and abstract class?

Interview Question: Write code of any Action Class?

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

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

Latest Articles (in Interview)