Home

Which of the following methods belong to the String class?

A. length()

B. compareTo()

C. substring()

D. all of the them

You can do it
  1. All the bitwise operators have the same level of precedence in Java.
  2. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  3. Which of the following will produce a value of 22 if x=22.9:
  4. A static class method can be invoked by simply using the name of the method alone.
  5. A JSP file can be stored_________________
  6. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  7. A catch can have comma-separated multiple arguments.
  8. A variable declared inside the for loop control can not be referenced out side the loop.
  9. What is java -g used for?
  10. A constructor must always invoke its supper class constructor in its first statement.
  11. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  12. In the code below, what data types the variable x can have?
  13. Members of a class specified as private are accessible only to the methods of the class.
  14. A panel can not be added to another panel.
  15. We would like to make a member of a class visible in all subclasses regardless of what package they…
  16. The default case is always required in the switch selection structure.
  17. Session bean
  18. The name of the RMI compiler is ___________
  19. Frames and applets cannot be used together in the same program.
  20. Which of the following are keywords?
  21. The setBackground() method is part of the class
  22. A package is a collection of
  23. DataInput is
  24. executeUpdate automatically updates data because___________
  25. forName() is a static factory method
  26. One the features of is that an array can store many different types of values.
  27. When the string objects are compared with ==, the result is true If the strings contain the same values.
  28. Throwing an exception always causes program termination.
  29. A method declared as static can not access non-static class members.
  30. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.