---
title: "What is the use of bin and lib in JDK?"  
description: "What is the use of bin and lib in JDK?"  
author: "Amit Singh"  
published: 2010-11-25  
updated: 2020-09-24  
canonical: https://www.mindstick.com/interview/261/what-is-the-use-of-bin-and-lib-in-jdk  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is the use of bin and lib in JDK?

Bin contains all tools such as javac, appletviewer, awt tool, etc., \
whereas lib contains API and all packages.

## Answers

### Answer by Anurag Chaurasia

Bin folder contains the binary files for java like javac,javadoc.rmic and rmi etc and they are normally used to work with java source code but the lib files contains the set of instructions for the binary files....

### Answer by Amit Singh

Bin contains all tools such as javac, appletviewer, awt tool, etc., \
whereas lib contains API and all packages.


---

Original Source: https://www.mindstick.com/interview/261/what-is-the-use-of-bin-and-lib-in-jdk

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
