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. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  2. The length of a string object 's1' can be obtained using the expression s1.length.
  3. A JSP file can be stored_________________
  4. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  5. The name of a Java program file must match the name of the class with the extension Java.
  6. A variable declared inside the for loop control can not be referenced out side the loop.
  7. Which of the following are keywords?
  8. putValue(...) method takes _____________________-
  9. Java always provides a default constructor to a class.
  10. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  11. Which are the valid ways to create DataInputStream streams?
  12. Consider the following class definitions: class maths { student student1; } class student { String name;…
  13. Two methods cannot have the same name in Java.
  14. Which of the following are not keywords?
  15. Which of the following represent legal flow control statements?
  16. Which of the following control expressions are valid for an if statement?
  17. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  18. When present, package must be the first no comment statement in the file.
  19. class.forName(...) creates an instance of java ODBC driver
  20. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  21. A Java monitor must either extend thread class or implement Runnable interface.
  22. In RMI before running the client program we must start RMI Registry.
  23. A catch can have comma-separated multiple arguments.
  24. Which of the following will produce a value of 10 if x = 9.7?
  25. Submit button always fires doPost(...)
  26. To delete a file, we can use an instance of class file.
  27. The programmer must explicitly create the system .in and system .out objects.
  28. forName() is a static factory method
  29. An EJB is a server-side component that encapsulates the business logic of an application
  30. A string object can not be modified after it is created.