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 types of comments are available in the JSP?

Interview Question: What is abstract schema?

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

Is Iterator a Class or Interface? What is its use?

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

The output of System.out.println(5>>2) in Java

Interview Question: What is Message Driven Bean?

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

What do you understand by Synchronization?

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

Interview Question: What is Local client view in EJB?

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

Interview Question: What is Remote client view?

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

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

Latest Articles (in Interview)