The Eb Archive file contains the files of a web application and reduces the time needed to transfer the files. War files can store java classes, XML, JSP, image, CSS, js, HTML, and JavaServer pages, which can be used to distribute the collection of Java classes, XML files, Java Servlets, Web pages, etc.
Following is the syntax to create a WAR file:
Jar -cvf file_name.war*
These are the Core Java basic interview questions for freshers, let us check out some of the top Java interview questions that come under the intermediate category.
Intermediate Core Java Interview Questions and Answers