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. A constructor must always invoke its supper class constructor in its first statement.
  2. Given the codeString s = new String("abc");Which of the following calls are valid?
  3. The break statement is required in the default case of a switch selection structure.
  4. class.forName(...) creates an instance of java ODBC driver
  5. When we implement the Runnable interface, we must define the method
  6. Consider the following class definitions: class maths { student student1; } class student { String name;…
  7. A variable declared inside the for loop control can not be referenced out side the loop.
  8. The name of the RMI compiler is ___________
  9. The concept of multiple inheritance is implemented in Java by
  10. In a single Servlet class we can use____________
  11. In RMI we invoke client method from remote server
  12. Which key word can protect a class in package from accessibility by the classes outside the package?
  13. What does the following line of code do?TextField text=new TextField(10);
  14. The length of a string object 's1' can be obtained using the expression s1.length.
  15. It is perfectly legal to refer to any instance variable inside of a static method.
  16. Which are the valid ways to create DataInputStream streams?
  17. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  18. Which of the following will produce a value of 10 if x = 9.7?
  19. executeUpdate automatically updates data because___________
  20. When we invoke repaint () for a Component, the AWT invokes the method:
  21. To delete a file, we can use an instance of class file.
  22. In order to connect to a database through java program we must create _______-
  23. A final class may not have any abstract method.
  24. Every method of a final in class is implicitly final.
  25. JdbcOdbcDriver is an object of Object class
  26. JSP files creates ________________
  27. Which of the following classes are available in the java.lang package?
  28. Frames and applets cannot be used together in the same program.
  29. forName() is a static factory method
  30. Which of the following represent legal flow control statements?