Kit Library

🎯 Exam Preparation Kit

Java Packages and Libraries

English 10 leveled MCQs Free

Shared by a Veda learner · Generated with Veda AI

Smart notes

What you'll study, topic by topic

1

Java Packages and Libraries

Full explanation, worked examples & memory tricks in the app

Solved paper preview

Sample questions with model answers

Every question in the paper gets a full exam-length answer in the app — organised by marks, the way a topper writes it.

7 marks Long answer

Discuss how packages enhance software development in Java.

Show answer outline

Packages enhance software development by organizing code, improving maintainability, facilitating reuse, and avoiding naming conflicts.

The full exam-length answer is in the app.

5 marks Long answer

Describe the hierarchy of packages in Java.

Show answer outline

The hierarchy starts with the top-level package 'java', containing sub-packages like 'io', 'lang', 'util', 'awt', 'net', and 'applet', each with its own classes.

The full exam-length answer is in the app.

5 marks Long answer

Explain the significance of the java.applet package.

Show answer outline

The java.applet package is significant for creating applets that run in a web browser, allowing interactive content.

The full exam-length answer is in the app.

5 marks Long answer

What is the role of the java.awt package? List two classes it contains.

Show answer outline

The java.awt package is used for creating graphical user interfaces; it contains classes like Button and Frame.

The full exam-length answer is in the app.

5 marks Long answer

Identify the main classes found in the java.lang package.

Show answer outline

Main classes in java.lang include String, System, Thread, Math, Object, and Exception.

The full exam-length answer is in the app.

4 marks Medium answer

Differentiate between the java.lang and java.util packages.

Show answer outline

java.lang contains fundamental classes like String and Math, while java.util provides utility classes like Collections and Date.

The full exam-length answer is in the app.

3 marks Medium answer

Explain the purpose of packages in Java.

Show answer outline

Packages help organize classes and interfaces into namespaces, promoting modularity and avoiding name conflicts.

The full exam-length answer is in the app.

3 marks Medium answer

What classes are found in the java.io package? Provide two examples.

Show answer outline

The java.io package contains classes like InputStream and OutputStream.

The full exam-length answer is in the app.

1 marks Short answer

Define a package in Java.

Show answer outline

A package in Java is a directory that groups related classes and interfaces.

The full exam-length answer is in the app.

1 marks Short answer

List any three sub-packages of the Java package.

Show answer outline

Three sub-packages are java.io, java.lang, and java.util.

The full exam-length answer is in the app.

Study it properly — free, in the app

The full Veda Bites deck, complete notes, spaced-repetition flashcards, leveled MCQs, tests and games for this kit — plus Daily Facts and the Arena, every day.