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. Which of the following are keywords?
  2. In RMI before running the client program we must start RMI Registry.
  3. Which of the following classes are available in the java.lang package?
  4. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  5. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  6. Which of the following are not keywords?
  7. Declaring a method synchronized guarantees that the deadlock cannot occur.
  8. The name of a Java program file must match the name of the class with the extension Java.
  9. It is perfectly legal to refer to any instance variable inside of a static method.
  10. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  11. All methods in an abstract class must be declared abstract.
  12. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  13. Which of the following methods can be used to change the size of a size() *resize()
  14. With javadoc, which of the following denotes a javadoc comment?
  15. An EJB is a server-side component that encapsulates the business logic of an application
  16. Which of the following will produce a value of 10 if x = 9.7?
  17. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  18. Java is fully object oriented programme.
  19. Objects are passed to a method by use of call-by-reference.
  20. The break statement is required in the default case of a switch selection structure.
  21. We can over load methods with differences only in their return type.
  22. The modulus operator (%) can be used only with Integer operands.
  23. A static class method can be invoked by simply using the name of the method alone.
  24. A package is a collection of
  25. The length of a string object 's1' can be obtained using the expression s1.length.
  26. In order to connect to a database through java program we must create _______-
  27. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  28. Which of the following control expressions are valid for an if statement?
  29. Which of the following statements are true?
  30. Every call to wait has a corresponding call to notify that will eventually end the wafting.