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. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  2. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  3. It is perfectly legal to assign a subclass object to a supper class reference.
  4. It is an error to have a method with the same signature in both the super class and its subclass.
  5. Which of the following represent legal flow control statements?
  6. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  7. Submit button always fires doPost(...)
  8. In order to connect to a database through java program we must create _______-
  9. The name of a Java program file must match the name of the class with the extension Java.
  10. The check box group class is a subclass of the component class.
  11. One the features of is that an array can store many different types of values.
  12. A string object can not be modified after it is created.
  13. All methods in an abstract class must be declared abstract.
  14. The name of the RMI compiler is ___________
  15. Which of the following will produce a value of 10 if x = 9.7?
  16. When we invoke repaint () for a Component, the AWT invokes the method:
  17. Java always provides a default constructor to a class.
  18. class.forName(...) creates an instance of java ODBC driver
  19. A method declared as static can not access non-static class members.
  20. Servlet has ___________
  21. The modulus operator (%) can be used only with Integer operands.
  22. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  23. Declarations can appear anywhere in the body of a Java method.
  24. Every method of a final in class is implicitly final.
  25. Which of the following statements are true?
  26. The concept of multiple inheritance is implemented in Java by
  27. The use of protected keyword to a member in a class will restrict its visibility as follows:
  28. An EJB is a server-side component that encapsulates the business logic of an application
  29. JSP files creates ________________
  30. In a single Servlet class we can use____________