Computer Applications
What are the library classes in Java? What is their use?
Java Library Classes
3 Likes
Answer
Library classes are the pre-written classes which are a part of the Java system. For example, the String and Scanner class.
Java environment has a huge library of library classes that contain pre-defined methods to simplify the job of a programmer. These methods support input/output operations, String handling and help in development of network and graphical user interface.
Answered By
2 Likes
Related Questions
What will be the result when the following statement is executed?
int count = new Integer(12);
- Variable count will be initialised with value 12.
- Variable count will be initialised with default value of int, i.e., zero (0).
- An array count will be initialised with 12 elements, all having a default value of zero (0).
- Value of count will be unknown as no value has been assigned yet.
In which package is the wrapper class Integer available?
- java.io
- java.util
- java.awt
- java.lang
Define Primitive data type
Define Composite data type