adplus-dvertising
frame-decoration

Question

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

Posted under JavaScript

Answer: (d).False

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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

Similar Questions

Discover Related MCQs

Q. What does Rhino do when the getter and setter methods exist?

Q. The JavaScript classes can be instantiated using _____ operator?

Q. The new Java arrays can be created into a JavaScript programs using which of the following classes?

Q. Which is a fast C++ based JavaScript interpreter?

Q. Why does the Node rely on event handlers?

Q. What is the command to run the node programs?

Q. What is the alternative command used in Node for load()?

Q. What is the command used for debugging output in Node?

Q. What is the code to print hello one second from now?

Q. Among the below given functions, Node supports which of the following client-side timer functions?

Q. The necessary globals of a node are defined under which namespace?

Q. Why does Node not block while waiting for operations to complete?

Q. Which is the method used for registering handlers?

Q. The main purpose of JavaScript in web browser is to

Q. A JavaScript program can traverse and manipulate document content through

Q. The behaviour of the document elements can be defined by

Q. The service(s) that enables networking through scripted HTTP requests is

Q. The HTML5 specification includes

Q. Which of the following are not advanced services?

Q. JavaScript code between a pair of 'script' tags are called