0% found this document useful (0 votes)
39 views2 pages

ICSE Java Packages and Classes

The document provides a comprehensive overview of Java packages and classes, detailing which classes belong to specific packages such as java.lang, java.util, and java.io. It also includes theoretical questions and answers about wrapper classes, their necessity, autoboxing and unboxing, and commonly used methods from the Math, Character, and String classes. This information is essential for ICSE Class 9-10 students studying Java.

Uploaded by

Atharv Chaudhary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views2 pages

ICSE Java Packages and Classes

The document provides a comprehensive overview of Java packages and classes, detailing which classes belong to specific packages such as java.lang, java.util, and java.io. It also includes theoretical questions and answers about wrapper classes, their necessity, autoboxing and unboxing, and commonly used methods from the Math, Character, and String classes. This information is essential for ICSE Class 9-10 students studying Java.

Uploaded by

Atharv Chaudhary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ICSE Class 9-10 Java Packages and Classes

Question Answer

From which package do wrapper classes belong? java.lang

From which package does the Character class belong? java.lang

From which package does the Math class belong? java.lang

From which package does the String class belong? java.lang

From which package do string methods belong? java.lang

From which package do character methods belong? java.lang

From which package do mathematical functions like sqrt(), pow(), abs() belong?
java.lang

From which package does the Scanner class belong? java.util

From which package does the Random class belong? java.util

From which package does the ArrayList class belong? java.util

From which package does the System class belong? java.lang

From which package does the BufferedReader class belong? java.io

From which package does the InputStreamReader class belong? java.io

From which package does the Integer class belong? java.lang

From which package does the Double class belong? java.lang

From which package does the Float class belong? java.lang

From which package does the Boolean class belong? java.lang

From which package does the Long class belong? java.lang

From which package does the Byte class belong? java.lang

From which package does the Short class belong? java.lang

From which package does the LinkedList class belong? java.util

From which package does the HashMap class belong? java.util

From which package does the TreeSet class belong? java.util

From which package does the HashSet class belong? java.util

From which package does the File class belong? java.io

From which package does the PrintWriter class belong? java.io

From which package does the IOException class belong? java.io

From which package does the Exception class belong? java.lang

From which package does the Thread class belong? java.lang

From which package does the Runnable interface belong? java.lang


From which package does the Date class belong? java.util

From which package does the Calendar class belong? java.util

Additional Theory Questions

Q: What are wrapper classes?


A: Wrapper classes in Java convert primitive data types into objects. Example: Integer, Double, Character, etc.

Q: Why are wrapper classes required?


A: They allow primitive types to be used as objects, enabling functionalities like storing in collections, using in generics,
etc.

Q: What is autoboxing and unboxing?


A: Autoboxing: Converting a primitive type into its wrapper class automatically.
Unboxing: Converting a wrapper class object into its primitive type.

Q: Give examples of important methods from the Math class.


A: sqrt(n), pow(a, b), abs(n), max(a, b), min(a, b), random()

Q: What are some commonly used methods from the Character class?
A: isLetter(c), isDigit(c), isUpperCase(c), isLowerCase(c), toUpperCase(c), toLowerCase(c)

Q: What are some commonly used methods from the String class?
A: length(), charAt(index), toUpperCase(), toLowerCase(), substring(start, end), indexOf(ch), equals(str)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy