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. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  2. An individual array element that is passed to a method and modified in that method will contain the…
  3. The methods wait() and noify() are defined in
  4. Which exception is thrown by the read() method of InputStream class?
  5. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  6. Which of the following statements are valid array declarations?
  7. Which of the following represent legal flow control statements?
  8. Given the codeString s = new String("abc");Which of the following calls are valid?
  9. Give file is a file object, which of the following are legal statements to create a new file.
  10. Which are the valid ways to create DataInputStream streams?
  11. Which of the following classes are available in the java.lang package?
  12. A string object can not be modified after it is created.
  13. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  14. The break statement is required in the default case of a switch selection structure.
  15. When we implement an interface method, it should be declared as public.
  16. Any class may be inherited by another class in the same package.
  17. Which of the following are not keywords?
  18. A constructor must always invoke its supper class constructor in its first statement.
  19. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  20. It is an error to have a method with the same signature in both the super class and its subclass.
  21. Every method of a final in class is implicitly final.
  22. Which of the following are the wrapper classes?
  23. It is perfectly legal to assign a subclass object to a supper class reference.
  24. Which of the following methods can be used to change the size of a size() *resize()
  25. It is perfectly legal to refer to any instance variable inside of a static method.
  26. Which of the following command lines options generates documentation for all classes and methods?
  27. Which key word can protect a class in package from accessibility by the classes outside the package?
  28. Any method in a supper class can be over ridden in its subclass.
  29. In a single Servlet class we can use____________
  30. The name of the RMI compiler is ___________