Home

Which of the following represent legal flow control statements?

A. break;

B. break();

C. continue(inner);

D. all of the above

You can do it
  1. JdbcOdbcDriver is an object of Object class
  2. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  3. All methods in an abstract class must be declared abstract.
  4. It is perfectly legal to assign a subclass object to a supper class reference.
  5. Which of the following statements are true?
  6. Java always provides a default constructor to a class.
  7. Which of the following will produce a value of 10 if x = 9.7?
  8. Which are the valid ways to create DataInputStream streams?
  9. A final class may not have any abstract method.
  10. The concept of multiple inheritance is implemented in Java by
  11. A string object can not be modified after it is created.
  12. Which exception is thrown by the read() method of InputStream class?
  13. A catch can have comma-separated multiple arguments.
  14. A Java monitor must either extend thread class or implement Runnable interface.
  15. Which of the following represent legal flow control statements?
  16. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  17. Two methods cannot have the same name in Java.
  18. Declarations can appear anywhere in the body of a Java method.
  19. Declaring a method synchronized guarantees that the deadlock cannot occur.
  20. Which of the following methods can be used to draw the outline of a square?
  21. A JSP file can be stored_________________
  22. All the bitwise operators have the same level of precedence in Java.
  23. With javadoc, which of the following denotes a javadoc comment?
  24. class.forName(...) creates an instance of java ODBC driver
  25. We can over load methods with differences only in their return type.
  26. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  27. Throwing an exception always causes program termination.
  28. When we implement the Runnable interface, we must define the method
  29. Members of a class specified as private are accessible only to the methods of the class.
  30. executeUpdate automatically updates data because___________