Home › Interview Questions › What is a JAR file, and what is an object in Java?

What is a JAR file, and what is an object in Java?

🟡 Medium Conceptual Junior level
1Times asked
Oct 2026Last seen
Oct 2026First seen

💡 Model Answer

A JAR (Java ARchive) file is a packaged archive that bundles Java class files, metadata, and resources into a single file for distribution and deployment. It is essentially a ZIP file with a specific structure and a manifest file that can specify the main class. An object in Java is an instance of a class that holds state (fields) and behavior (methods). Objects are created at runtime using the new keyword, and they are managed by the Java Virtual Machine’s garbage collector. Together, JAR files enable modular distribution of Java code, while objects are the fundamental units of execution within that code.

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers on a discreet on-screen overlay.

Get Assisting AI — Starts at ₹500