Home / Questions / What are library classes? Give an example.
Explanatory Question

What are library classes? Give an example.

👁 136 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Library Classes:

Library classes are pre-defined classes provided by Java, which are part of the Java API (Application Programming Interface). They contain useful methods and functionality that programmers can use to perform common tasks.

Example:
java.util.Scanner is a library class used to take user input.