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

By: Karthik 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 )

Interview Question: Do you have to credit Struts on your own website?

Interview Question: If the framework doesn't do what I want, can I request that a feature be added?

What is similarities/difference between an Abstract class and Interface?

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

Question: How is the MVC design pattern used in Struts framework?

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

Interview Question: What is Action Class?

Interview Question: What are the optional clauses in EJB QL?

Question: What is an output comment in JSP?

What do you understand by a J2EE module?

What is Deployment Descriptor?

What is Collection API?

Interview Question: What is Message Driven Bean?

What is J2EE?

Name the containers which uses Border Layout as their default layout?

Latest Articles (in Interview)

Comment on this tutorial