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

By: Karthik  

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.


Archived Comments


Most Viewed Articles (in Interview )

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

What is the difference between interface and abstract class?

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

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

Interview Question: What about JSTL and JavaServer Faces ?

Interview Question: What is Message Driven Bean?

What is expression in JSP?

What are the call back methods in Session bean?

What do you understand by JTA and JTS?

Interview Question: Write code of any Action Class?

Interview Question: What is lazy loading?

Interview Question: What are the call back methods in Entity bean?

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

What is the difference between Session Bean and Entity Bean?

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

Latest Articles (in Interview)

Comment on this tutorial