Home

It is an error to catch the same type of exception in two different catch blocks associated with a particular try block.

A. True

B. False

You can do it
  1. Which of the following methods can be used to remove a component from the display?
  2. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  3. Members of a class specified as private are accessible only to the methods of the class.
  4. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  5. An individual array element that is passed to a method and modified in that method will contain the…
  6. Which of the following statements are true?
  7. A method declared as static can not access non-static class members.
  8. Connection, Statement are interfaces and ResultSet is a class.
  9. Which are the valid ways to create DataInputStream streams?
  10. Any class may be inherited by another class in the same package.
  11. The import statement is always the first no comment statement in a Java program files.
  12. In order to connect to a database through java program we must create _______-
  13. A JSP file can be stored_________________
  14. All methods in an abstract class must be declared abstract.
  15. JSP files creates ________________
  16. The name of a Java program file must match the name of the class with the extension Java.
  17. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  18. With javadoc, which of the following denotes a javadoc comment?
  19. What does the following line of code do?TextField text=new TextField(10);
  20. Which of the following will produce a value of 10 if x = 9.7?
  21. The length of a string object 's1' can be obtained using the expression s1.length.
  22. When we implement an interface method, it should be declared as public.
  23. The name of the RMI compiler is ___________
  24. A static class method can be invoked by simply using the name of the method alone.
  25. Which exception is thrown by the read() method of InputStream class?
  26. Throwing an exception always causes program termination.
  27. class.forName(...) creates an instance of java ODBC driver
  28. Two methods cannot have the same name in Java.
  29. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  30. Submit button always fires doPost(...)