A Java monitor must either extend thread class or implement Runnable interface.

A. True

B. False

You can do it
  1. In the code below, what data types the variable x can have?
  2. All methods in an abstract class must be declared abstract.
  3. What is java -g used for?
  4. When the string objects are compared with ==, the result is true If the strings contain the same values.
  5. The length of a string object 's1' can be obtained using the expression s1.length.
  6. The use of protected keyword to a member in a class will restrict its visibility as follows:
  7. It is perfectly legal to assign a subclass object to a supper class reference.
  8. A method declared as static can not access non-static class members.
  9. Which of the following classes are available in the java.lang package?
  10. The keywords reserved but not used in the initial version of Java re:
  11. Which of the following statements are valid array declarations?
  12. A static class method can be invoked by simply using the name of the method alone.
  13. In order to connect to a database through java program we must create _______-
  14. Throwing an exception always causes program termination.
  15. A variable declared inside the for loop control can not be referenced out side the loop.
  16. Which of the following are keywords?
  17. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  18. Which of the following methods can be used to remove a component from the display?
  19. Which of the following control expressions are valid for an if statement?
  20. Java always provides a default constructor to a class.
  21. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  22. DataInput is
  23. The name of the RMI compiler is ___________
  24. Which of the following are the wrapper classes?
  25. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  26. The methods wait() and noify() are defined in
  27. What does the following line of code do?TextField text=new TextField(10);
  28. A string object can not be modified after it is created.
  29. Frames and applets cannot be used together in the same program.
  30. Which javadoc tag is used to denote a comment for methods parameters?