Given the code
String s = new String("abc");
Which of the following calls are valid?

A. s.toUpperCase()

B. s.append("xyz")

C. s.setCharAt(1<'A')

D. all of the above

You can do it
  1. Declarations can appear anywhere in the body of a Java method.
  2. Which of the following are keywords?
  3. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  4. In RMI before running the client program we must start RMI Registry.
  5. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  6. The import statement is always the first no comment statement in a Java program files.
  7. Which of the following methods can be used to change the size of a size() *resize()
  8. Which of the following are not keywords?
  9. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  10. Which key word can protect a class in package from accessibility by the classes outside the package?
  11. Which of the following statements are valid array declarations?
  12. Which javadoc tag is used to denote a comment for methods parameters?
  13. Servlet has ___________
  14. What does the following line of code do?TextField text=new TextField(10);
  15. A method declared as static can not access non-static class members.
  16. A catch can have comma-separated multiple arguments.
  17. putValue(...) method takes _____________________-
  18. Members of a class specified as private are accessible only to the methods of the class.
  19. In the code below, what data types the variable x can have?
  20. The default case is always required in the switch selection structure.
  21. Which of the following represent legal flow control statements?
  22. Which are the valid ways to create DataInputStream streams?
  23. Which of the following will produce a value of 10 if x = 9.7?
  24. We can over load methods with differences only in their return type.
  25. When we implement an interface method, it should be declared as public.
  26. Session bean
  27. In a single Servlet class we can use____________
  28. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  29. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  30. Servlet can have ___________