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

By: Karthik Viewed: 170 times  Printer Friendly Format    


Answer: These files are simply zipped file using java jar tool. These files are created for different purposes. Here is the description of these files:

.jar files: These files are with the .jar extenstion. The .jar files contains the libraries, resources and accessories files like property files.

.war files: These files are with the .war extension. The war file contains the web application that can be deployed on the any servlet/jsp container. The .war file contains jsp, html, javascript and other files for necessary for the development of web applications.

.ear files: The .ear file contains the EJB modules of the application.


Most Viewed Articles (in Interview )

What is the difference between JTS and JTA?

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

Interview Question: What is Action Class?

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

Tell me something about J2EE component?

What is Deployment Descriptor?

Explain garbage collection?

Interview Question: What is ActionForm?

Interview Question: What about JSTL and JavaServer Faces ?

Interview Question: Why are some of the class and element names counter-intuitive?

Interview Question: What is the difference between ejbCreate() and ejbPostCreate?

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

Interview Question: What is lazy loading?

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

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

Latest Articles (in Interview)

Comment on this tutorial