Q. How do you create a Reader object from an InputStream object?

  • (A) Use the static createReader() method of InputStream class
  • (B) Use the static createReader() method of Reader class
  • (C) Create an InputStreamReader object passing the InputStream object and an argument to the InputStreamReader constructor.
  • (D) Create an OutputStreamReader object, passing the InputStream object as an argument to the OutputStreamReader constructor.
πŸ’¬ Discuss
βœ… Correct Answer: (C) Create an InputStreamReader object passing the InputStream object and an argument to the InputStreamReader constructor.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
236
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
98%
Success Rate