✏️ Explanatory Question

Describe the two fundamental types of stream classes in Java and their specific use cases for I/O operations.

👁 1 Views
📘 Detailed Answer
🟢 Easy
1
Total Views
10
Related Qs
0%
Progress
💡

Answer with Explanation

The two types of stream classes are Byte stream classes and Character stream classes, both located in the java.io package. Byte stream classes are used for Byte oriented I/O, which is suitable for machine-readable binary files. Character stream classes are used for Character oriented I/O, designed for human-readable text files that use a specific character encoding scheme like Unicode.