Question

Research predefined java packages. Select 2 packages and describe what they provide. Explain briefly what type...

Research predefined java packages. Select 2 packages and describe what they provide. Explain briefly what type of functionalities they provide. Give at least 2 example classes defined in each package you selected.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Package 1:

java.lang:

lang package provides classes which are fundamental for any Java program. Even if this package is not imported JVM automatically imports it. This packages consists of the following packages.

1. System,

2. String,

3. Object,

4. Thread,

5. Math,

6. Exception, etc.,

Package 2:

Java.io

io package provides the system input and output from files through serialization files/ data streams and file systems. The classes provided by this packages are used in all I/O operations including keyboard input. Classes are

1. FileInputStream,

2. FileOutputStream,

3. FileReader,

4. FileWriter,

5. RandomAccessFile,

6. BufferedReader,

7. BufferedWriter etc.

Add a comment
Know the answer?
Add Answer to:
Research predefined java packages. Select 2 packages and describe what they provide. Explain briefly what type...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT