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. In order to connect to a database through java program we must create _______-
  2. Servlet has ___________
  3. The use of protected keyword to a member in a class will restrict its visibility as follows:
  4. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  5. Objects are passed to a method by use of call-by-reference.
  6. An individual array element that is passed to a method and modified in that method will contain the…
  7. It is an error to have a method with the same signature in both the super class and its subclass.
  8. executeUpdate(------------) returns ___________
  9. Which of the following represent legal flow control statements?
  10. Declarations can appear anywhere in the body of a Java method.
  11. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  12. Every method of a final in class is implicitly final.
  13. The break statement is required in the default case of a switch selection structure.
  14. An EJB is a server-side component that encapsulates the business logic of an application
  15. A JSP file can be stored_________________
  16. Which of the following statements are valid array declarations?
  17. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  18. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  19. A variable declared inside the for loop control can not be referenced out side the loop.
  20. Which of the following represent legal flow control statements?
  21. We can over load methods with differences only in their return type.
  22. Java is fully object oriented programme.
  23. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  24. executeUpdate automatically updates data because___________
  25. The setBackground() method is part of the class
  26. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  27. One the features of is that an array can store many different types of values.
  28. Which of the following methods belong to the String class?
  29. A package is a collection of
  30. DataInput is