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?

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? Correct Answer False

Answer: Option 4

The output for the above code snippet is false as it is a writer and not a Reader.

Related Questions

If A = x% of y and B = y% of x, then which of the following is true?
What is the value of var? $var = 'HELLO WORLD!'; $var = ucfirst($var);
Consider the following code snippet var sets = com.davidflanagan.collections.sets; What is the programmer trying to do in the above code snippet?
Consider the following code snippet function printprops(o) { for(var p in o) console.log(p + ": " + o[p] + "n"); } What will the above code snippet result ?