What is the correct answer?


Which exception is thrown by the read() method of InputStream class?

A. IOException

B. FileNotFoundException

C. ReadException

D. None of the above

Correct Answer :

A. IOException

Related Questions

When the string objects are compared with ==, the result is true If the… All methods in an abstract class must be declared abstract. Every method of a final in class is implicitly final. Which of the following represent legal flow control statements? Consider the following class definition.Class Student extends String{}What… Which of the following are the wrapper classes? If you want to assign a value of 99 to the variable year, then which of… A final class may not have any abstract method. Declarations can appear anywhere in the body of a Java method. Give file is a file object, which of the following are legal statements… EJBs can be of the following type(s)None of the above A package is a collection of Which of the following string can be used as mode string for creating… Java is fully object oriented programme. A method declared as static can not access non-static class members. A catch can have comma-separated multiple arguments. To delete a file, we can use an instance of class file. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division… It is an error if a class with one or more abstract methods is not explicitly… A Java monitor must either extend thread class or implement Runnable interface. Two methods cannot have the same name in Java. class.forName(...) creates an instance of java ODBC driver executeUpdate automatically updates data because___________ The methods wait() and noify() are defined in Which of the following keywords are used to control access to a class… JdbcOdbcDriver is an object of Object class In order to connect to a database through java program we must create… Which of the following are keywords? In a single Servlet class we can use____________ The default case is always required in the switch selection structure.