Home

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

A. IOException

B. FileNotFoundException

C. ReadException

D. None of the above

You can do it
  1. The import statement is always the first no comment statement in a Java program files.
  2. It is perfectly legal to refer to any instance variable inside of a static method.
  3. Java is fully object oriented programme.
  4. What does the following line of code do?TextField text=new TextField(10);
  5. It is an error to have a method with the same signature in both the super class and its subclass.
  6. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  7. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  8. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  9. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  10. Which of the following keywords are used to control access to a class member?
  11. Which of the following methods can be used to remove a component from the display?
  12. Which of the following methods can be used to change the size of a size() *resize()
  13. The methods wait() and noify() are defined in
  14. EJBs can be of the following type(s)None of the above
  15. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  16. Two methods cannot have the same name in Java.
  17. Which of the following will produce a value of 10 if x = 9.7?
  18. Which of the following command lines options generates documentation for all classes and methods?
  19. The default case is always required in the switch selection structure.
  20. Which exception is thrown by the read() method of InputStream class?
  21. In RMI before running the client program we must start RMI Registry.
  22. The concept of multiple inheritance is implemented in Java by
  23. JdbcOdbcDriver is an object of Object class
  24. Which of the following statements are true?
  25. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  26. Consider the following class definitions: class maths { student student1; } class student { String name;…
  27. Which of the following will produce a value of 22 if x=22.9:
  28. A Java monitor must either extend thread class or implement Runnable interface.
  29. The setBackground() method is part of the class
  30. All the bitwise operators have the same level of precedence in Java.