?
Consider the following code snippet
Consider the following code snippet
var f = new java.io.File("/tmp/test");
var out = new java.io.FileWriter(f);
out instanceof java.io.Reader
What will be the output for the above code snippet?
var f = new java.io.File("/tmp/test");
var out = new java.io.FileWriter(f);
out instanceof java.io.Reader
Answer & Solution
Correct Answer:
Option
D
The output for the above code snippet is false as it is a writer and not a Reader.
Join the Discussion
Login to post a comment or share your explanation.
Login