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 will produce a value of 22 if x=22.9:
  2. Which key word can protect a class in package from accessibility by the classes outside the package?
  3. A catch can have comma-separated multiple arguments.
  4. Which of the following methods belong to the String class?
  5. One the features of is that an array can store many different types of values.
  6. A method declared as static can not access non-static class members.
  7. Two methods cannot have the same name in Java.
  8. The name of the RMI compiler is ___________
  9. In RMI we invoke client method from remote server
  10. Any method in a supper class can be over ridden in its subclass.
  11. It is perfectly legal to refer to any instance variable inside of a static method.
  12. When present, package must be the first no comment statement in the file.
  13. Servlet can have ___________
  14. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  15. With javadoc, which of the following denotes a javadoc comment?
  16. Any class may be inherited by another class in the same package.
  17. Consider the following class definitions: class maths { student student1; } class student { String name;…
  18. All methods in an abstract class must be declared abstract.
  19. Java is fully object oriented programme.
  20. When we implement an interface method, it should be declared as public.
  21. Every method of a final in class is implicitly final.
  22. JSP files creates ________________
  23. It is perfectly legal to assign a subclass object to a supper class reference.
  24. In the code below, what data types the variable x can have?
  25. The setBackground() method is part of the class
  26. When the string objects are compared with ==, the result is true If the strings contain the same values.
  27. When we implement the Runnable interface, we must define the method
  28. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  29. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  30. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…