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. When we implement the Runnable interface, we must define the method
  2. Members of a class specified as private are accessible only to the methods of the class.
  3. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  4. Declarations can appear anywhere in the body of a Java method.
  5. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  6. Which exception is thrown by the read() method of InputStream class?
  7. It is perfectly legal to refer to any instance variable inside of a static method.
  8. The check box group class is a subclass of the component class.
  9. When the string objects are compared with ==, the result is true If the strings contain the same values.
  10. class.forName(...) creates an instance of java ODBC driver
  11. Given the codeString s = new String("abc");Which of the following calls are valid?
  12. The length of a string object 's1' can be obtained using the expression s1.length.
  13. Which of the following statements are true?
  14. The name of a Java program file must match the name of the class with the extension Java.
  15. In the code below, what data types the variable x can have?
  16. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  17. Session bean
  18. Frames and applets cannot be used together in the same program.
  19. Submit button always fires doPost(...)
  20. In a single Servlet class we can use____________
  21. The modulus operator (%) can be used only with Integer operands.
  22. Servlet can have ___________
  23. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  24. The methods wait() and noify() are defined in
  25. Which of the following represent legal flow control statements?
  26. Which of the following will produce a value of 22 if x=22.9:
  27. forName() is a static factory method
  28. The concept of multiple inheritance is implemented in Java by
  29. DataInput is
  30. Which of the following represent legal flow control statements?