Home

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. The setBackground() method is part of the class
  2. The keywords reserved but not used in the initial version of Java re:
  3. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  4. To delete a file, we can use an instance of class file.
  5. Which of the following are not keywords?
  6. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  7. It is an error to have a method with the same signature in both the super class and its subclass.
  8. Every method of a final in class is implicitly final.
  9. The concept of multiple inheritance is implemented in Java by
  10. A panel can not be added to another panel.
  11. Which are the valid ways to create DataInputStream streams?
  12. Java is fully object oriented programme.
  13. A catch can have comma-separated multiple arguments.
  14. When we implement the Runnable interface, we must define the method
  15. Which of the following methods belong to the String class?
  16. A JSP file can be stored_________________
  17. What is java -g used for?
  18. Java always provides a default constructor to a class.
  19. All the bitwise operators have the same level of precedence in Java.
  20. Which of the following will produce a value of 10 if x = 9.7?
  21. Session bean
  22. Any class may be inherited by another class in the same package.
  23. Connection, Statement are interfaces and ResultSet is a class.
  24. DataInput is
  25. Which of the following represent legal flow control statements?
  26. The name of a Java program file must match the name of the class with the extension Java.
  27. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  28. An individual array element that is passed to a method and modified in that method will contain the…
  29. Servlet has ___________
  30. The modulus operator (%) can be used only with Integer operands.