Table of Contents
Java Library Classes and Packages
🔒 Please log in to unlock this course.
ONLINE CLASSES BY RUMMAN ANSARI
Stuck on a Java Program? Ask Your Doubt Directly
Book a one-to-one session to get your questions answered, or message on WhatsApp for live online classes in Java Programming.
- 1:1 Mentoring
- Doubt Clearing
- Interview Preparation
Related Questions
Question 1
What is the difference between byte oriented IO and character oriented IO ? How are these two…
Locked. Enroll to open this question.
Question 2
Which class buffers the input received from an InputStreamReader object?
Locked. Enroll to open this question.
Question 3
Which package is by default imported in every Java program?
Locked. Enroll to open this question.
Question 4
Name the block that encloses the code that may encounter anomalous situations.
Locked. Enroll to open this question.
Question 5
In which block can you throw the exception?
Locked. Enroll to open this question.
Question 6
Which block traps and handles an exception?
Locked. Enroll to open this question.
Question 7
Can one catch block sufficiently trap and handle multiple exceptions?
Locked. Enroll to open this question.
Question 8
Which block is always executed no matter which exception is thrown?
Locked. Enroll to open this question.
Question 9
NumberFormatException is subclass of which exception class?
Locked. Enroll to open this question.
Question 10
IOException is subclass of which exception class?
Locked. Enroll to open this question.
Question 11
What is the role of(i) throws keyword?(ii) throw keyword?
Locked. Enroll to open this question.
Question 12
Why is exception handling necessary?
Locked. Enroll to open this question.
Question 13
Difference between equals() and equalsIgnoreCase() string functions?
Locked. Enroll to open this question.
Question 14
Difference between length() and capacity() string functions?
Locked. Enroll to open this question.
Question 15
The default package is a package without any name and is imported for you.
Locked. Enroll to open this question.
Question 16
Name the class that translates data bytes received from InputStream objects into a stream of…
Locked. Enroll to open this question.
Question 17
Which class stores the information about the connection between an input device and the computer or…
Locked. Enroll to open this question.
Question 18
Which streams are by default available in a Java program?
Locked. Enroll to open this question.
Question 19
What is an exception ?
Locked. Enroll to open this question.
Question 20
When is Exception Handling required ?
Locked. Enroll to open this question.
Question 21
What is the function of catch block in exception handling ? Where does it appear in a program ?
Locked. Enroll to open this question.
Question 22
What are the advantages of exception handling ?
Locked. Enroll to open this question.
Question 23
When do use need multiple catch handlers ?
Locked. Enroll to open this question.
Question 24
Differentiate between String and StringBuffer objects.
Locked. Enroll to open this question.
Question 25
Given a package named EDU.Student, how would you import a class named Test contained in this…
Locked. Enroll to open this question.
Question 26
There are three classes that implement the DataInput and DataOutput interfaces. Two of them are…
Locked. Enroll to open this question.
Question 27
What will be the output of the following code snippet when combined with suitable declarations and…
Locked. Enroll to open this question.
Question 28
Give the output of the following program
Locked. Enroll to open this question.
Question 29
Consider the following try .... catch block:
Locked. Enroll to open this question.
Question 30
What is the output of the following code fragment if "abc" is passed as argument to the func( ) ?
Locked. Enroll to open this question.
Question 31
Predefined classes are available in the form of _________.
Locked. Enroll to open this question.
Question 32
Name the package you need to import for performing input and output.
Locked. Enroll to open this question.
Question 33
Which command creates a package in Java?
Locked. Enroll to open this question.
Get Java Programming Language updates by email
Short, practical lessons and course updates from Rumman Ansari. No spam.