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: Who makes the Struts?

Interview Question: How does Struts work?

Interview Question: Where can I get a copy of Struts?

Interview Question: What is Local client view in EJB?

Interview Question: Can I invoke Runtime.gc() in an EJB?

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

Interview Question: What is abstract schema?

Interview Question: Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?

Question: What is an output comment in JSP?

What is Deployment Descriptor?

What do you understand by Synchronization?

What is JSP Scriptlet?

Interview Question: What is Struts?

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

Interview Question: Why it is called Struts?

Latest Articles (in Interview)

Comment on this tutorial