Programming Tutorials

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

By: Karthik in Interview Tutorials on 2012-06-16  

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.





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

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

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

What are the call back methods in Session bean?

How to define an Interface?

What is the difference between JTS and JTA?

What is the difference between Session Bean and Entity Bean?

Interview Question: What is Remote client view?

Interview Question: Why it is called Struts?

Explain the user defined Exceptions?

Question: Explain the life-cycle methods in JSP?

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

Interview Question: How many EJB Objects are created for a Bean?

Interview Question: What is local interface. How values will be passed?

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

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

Latest Articles (in Interview)