What does the following line of code do?
TextField text=new TextField(10);

A. Creates text object that can hold 10 rows of text.

B. Creates text object that can hold 10 columns of text.

C. Creates the object text and initializes it with the value 10.

D. The code is illegal.

You can do it
  1. It is perfectly legal to assign a subclass object to a supper class reference.
  2. A string object can not be modified after it is created.
  3. In order to connect to a database through java program we must create _______-
  4. DataInput is
  5. When we implement the Runnable interface, we must define the method
  6. The methods wait() and noify() are defined in
  7. Which of the following are not keywords?
  8. Which exception is thrown by the read() method of InputStream class?
  9. A final class may not have any abstract method.
  10. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  11. All the bitwise operators have the same level of precedence in Java.
  12. One the features of is that an array can store many different types of values.
  13. A static class method can be invoked by simply using the name of the method alone.
  14. putValue(...) method takes _____________________-
  15. Any method in a supper class can be over ridden in its subclass.
  16. Which of the following statements are valid array declarations?
  17. Which of the following statements are true?
  18. An individual array element that is passed to a method and modified in that method will contain the…
  19. With javadoc, which of the following denotes a javadoc comment?
  20. Throwing an exception always causes program termination.
  21. A constructor must always invoke its supper class constructor in its first statement.
  22. Two methods cannot have the same name in Java.
  23. A variable declared inside the for loop control can not be referenced out side the loop.
  24. Which of the following statements are true?
  25. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  26. Which of the following classes are available in the java.lang package?
  27. Objects are passed to a method by use of call-by-reference.
  28. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  29. Which of the following represent legal flow control statements?
  30. The setBackground() method is part of the class