Home

The methods wait() and noify() are defined in

A. java.lang.Thread

B. java.lang.Runnable

C. java.lang.Object

D. java.lang.ThreadGroup

You can do it
  1. In the code below, what data types the variable x can have?
  2. It is perfectly legal to assign a subclass object to a supper class reference.
  3. The use of protected keyword to a member in a class will restrict its visibility as follows:
  4. A constructor must always invoke its supper class constructor in its first statement.
  5. executeUpdate(------------) returns ___________
  6. Which of the following are the wrapper classes?
  7. Throwing an exception always causes program termination.
  8. Which of the following represent legal flow control statements?
  9. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  10. A method declared as static can not access non-static class members.
  11. Consider the following class definitions: class maths { student student1; } class student { String name;…
  12. The modulus operator (%) can be used only with Integer operands.
  13. The methods wait() and noify() are defined in
  14. DataInput is
  15. Which of the following methods can be used to remove a component from the display?
  16. Any class may be inherited by another class in the same package.
  17. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  18. A catch can have comma-separated multiple arguments.
  19. One the features of is that an array can store many different types of values.
  20. Which of the following classes are available in the java.lang package?
  21. In RMI we invoke client method from remote server
  22. Which of the following statements are true?
  23. The setBackground() method is part of the class
  24. Declaring a method synchronized guarantees that the deadlock cannot occur.
  25. Which of the following command lines options generates documentation for all classes and methods?
  26. A static class method can be invoked by simply using the name of the method alone.
  27. Which of the following keywords are used to control access to a class member?
  28. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  29. An EJB is a server-side component that encapsulates the business logic of an application
  30. Which of the following statements are valid array declarations?