A JAR (Java Archive) file is a package file format in Java that combines multiple .class files, metadata, and resources (like images and text files) into a single compressed archive. JAR files simplify deployment and distribution of Java applications, especially when sharing reusable libraries or runnable apps.
Time limit: 0
Quiz Summary
0 of 15 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
What is the default extension of a Java archive file?
Correct
Incorrect
Question 4 of 15
4. Question
Which of the following is true about a JAR file?
Correct
Incorrect
Question 5 of 15
5. Question
What is the purpose of the MANIFEST.MF file inside a JAR?
Correct
Incorrect
Question 6 of 15
6. Question
Which command creates a JAR file with a manifest?
Correct
Incorrect
Question 7 of 15
7. Question
How do you execute a JAR file with a main class defined?
Correct
Incorrect
Question 8 of 15
8. Question
Which directory contains the manifest file in a JAR?
Correct
Incorrect
Question 9 of 15
9. Question
What type of compression is used in JAR files?
Correct
Incorrect
Question 10 of 15
10. Question
Can a JAR file be digitally signed?
Correct
Incorrect
Question 11 of 15
11. Question
Which tool is used to sign a JAR file?
Correct
Incorrect
Question 12 of 15
12. Question
What happens if the main class is not defined in the manifest file?
Correct
Incorrect
Question 13 of 15
13. Question
Can a JAR file be used as a library?
Correct
Incorrect
Question 14 of 15
14. Question
Which manifest attribute defines the class to execute in a JAR?
Correct
Incorrect
Question 15 of 15
15. Question
Which flag in the jar command lists the contents of a JAR file?
Correct
Incorrect
Summary
A JAR file in Java is a powerful way to bundle classes, images, configuration files, and other resources into one compressed archive. Whether you’re building reusable libraries or executable applications, JAR files simplify distribution and maintainability across platforms.
At QuizOrbit, our team specializes in fun, informative quizzes across topics like general knowledge, technology, and entertainment. Boost your knowledge with our expert-designed quizzes.