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.

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. In order to connect to a database through java program we must create _______-
  2. Members of a class specified as private are accessible only to the methods of the class.
  3. DataInput is
  4. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  5. The length of a string object 's1' can be obtained using the expression s1.length.
  6. We can over load methods with differences only in their return type.
  7. putValue(...) method takes _____________________-
  8. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  9. In a single Servlet class we can use____________
  10. Frames and applets cannot be used together in the same program.
  11. The methods wait() and noify() are defined in
  12. The concept of multiple inheritance is implemented in Java by
  13. Servlet has ___________
  14. EJBs can be of the following type(s)None of the above
  15. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  16. Java always provides a default constructor to a class.
  17. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  18. Which exception is thrown by the read() method of InputStream class?
  19. Given the codeString s = new String("abc");Which of the following calls are valid?
  20. Declarations can appear anywhere in the body of a Java method.
  21. The use of protected keyword to a member in a class will restrict its visibility as follows:
  22. All the bitwise operators have the same level of precedence in Java.
  23. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  24. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  25. Which of the following represent legal flow control statements?
  26. A string object can not be modified after it is created.
  27. Which of the following represent legal flow control statements?
  28. The default case is always required in the switch selection structure.
  29. One the features of is that an array can store many different types of values.
  30. What is java -g used for?