Home

A thread can make second thread ineligible for execution by calling the suspend (-) method on second thread.

A. True

B. False

You can do it
  1. When we invoke repaint () for a Component, the AWT invokes the method:
  2. Which exception is thrown by the read() method of InputStream class?
  3. Any class may be inherited by another class in the same package.
  4. Members of a class specified as private are accessible only to the methods of the class.
  5. The name of a Java program file must match the name of the class with the extension Java.
  6. Give file is a file object, which of the following are legal statements to create a new file.
  7. In the code below, what data types the variable x can have?
  8. Which of the following will produce a value of 22 if x=22.9:
  9. putValue(...) method takes _____________________-
  10. We can add more than one class(es) at the time of compilation Java Beans.
  11. The length of a string object 's1' can be obtained using the expression s1.length.
  12. Which of the following represent legal flow control statements?
  13. A string object can not be modified after it is created.
  14. Which of the following keywords are used to control access to a class member?
  15. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  16. The keywords reserved but not used in the initial version of Java re:
  17. A JSP file can be stored_________________
  18. Which of the following are keywords?
  19. Which of the following statements are true?
  20. Throwing an exception always causes program termination.
  21. A catch can have comma-separated multiple arguments.
  22. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  23. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  24. It is perfectly legal to refer to any instance variable inside of a static method.
  25. In a single Servlet class we can use____________
  26. A variable declared inside the for loop control can not be referenced out side the loop.
  27. The modulus operator (%) can be used only with Integer operands.
  28. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  29. Which of the following statements are true?
  30. When we implement an interface method, it should be declared as public.