A

Admin • 828.03K Points
Coach

Q. 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?

  • (A) Error
  • (B) True
  • (C) Exception
  • (D) False
  • Correct Answer - Option(D)
  • Views: 8
  • Filed under category JavaScript
  • Hashtags:

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.