Home

Which of the following represent legal flow control statements?

A. break();

B. continue(inner);

C. return;

D. exit();

You can do it
  1. A Java monitor must either extend thread class or implement Runnable interface.
  2. Any class may be inherited by another class in the same package.
  3. Which of the following will produce a value of 10 if x = 9.7?
  4. Which of the following will produce a value of 22 if x=22.9:
  5. When we invoke repaint () for a Component, the AWT invokes the method:
  6. To delete a file, we can use an instance of class file.
  7. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  8. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  9. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  10. The default case is always required in the switch selection structure.
  11. An EJB is a server-side component that encapsulates the business logic of an application
  12. It is perfectly legal to refer to any instance variable inside of a static method.
  13. All the bitwise operators have the same level of precedence in Java.
  14. Connection, Statement are interfaces and ResultSet is a class.
  15. Which of the following statements are true?
  16. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  17. Which of the following statements are true?
  18. The modulus operator (%) can be used only with Integer operands.
  19. forName() is a static factory method
  20. We would like to make a member of a class visible in all subclasses regardless of what package they…
  21. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  22. One the features of is that an array can store many different types of values.
  23. Throwing an exception always causes program termination.
  24. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  25. The concept of multiple inheritance is implemented in Java by
  26. With javadoc, which of the following denotes a javadoc comment?
  27. Which of the following classes are available in the java.lang package?
  28. Any method in a supper class can be over ridden in its subclass.
  29. The check box group class is a subclass of the component class.
  30. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.