Explanatory Question
What are library classes? Give an example.
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.
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.
First read the answer fully, then try to explain it in your own words. After that, open a few related questions and compare the concepts. This method helps you remember the topic for a longer time and improves exam preparation.