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 yup
  1. In order to connect to a database through java program we must create _______-
  2. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  3. When we implement an interface method, it should be declared as public.
  4. Java is fully object oriented programme.
  5. Every method of a final in class is implicitly final.
  6. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  7. The use of protected keyword to a member in a class will restrict its visibility as follows:
  8. The break statement is required in the default case of a switch selection structure.
  9. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  10. What does the following line of code do?TextField text=new TextField(10);
  11. A constructor must always invoke its supper class constructor in its first statement.
  12. When present, package must be the first no comment statement in the file.
  13. In the code below, what data types the variable x can have?
  14. We would like to make a member of a class visible in all subclasses regardless of what package they…
  15. One the features of is that an array can store many different types of values.
  16. Which of the following will produce a value of 22 if x=22.9:
  17. Two methods cannot have the same name in Java.
  18. Which of the following keywords are used to control access to a class member?
  19. A variable declared inside the for loop control can not be referenced out side the loop.
  20. Which key word can protect a class in package from accessibility by the classes outside the package?
  21. We can over load methods with differences only in their return type.
  22. forName() is a static factory method
  23. To delete a file, we can use an instance of class file.
  24. Objects are passed to a method by use of call-by-reference.
  25. The setBackground() method is part of the class
  26. A method declared as static can not access non-static class members.
  27. Which of the following will produce a value of 10 if x = 9.7?
  28. Consider the following class definitions: class maths { student student1; } class student { String name;…
  29. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  30. Every call to wait has a corresponding call to notify that will eventually end the wafting.