Home

When the string objects are compared with ==, the result is true If the strings contain the same values.

A. True

B. False

You can do it
  1. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  2. When the string objects are compared with ==, the result is true If the strings contain the same values.
  3. Connection, Statement are interfaces and ResultSet is a class.
  4. Which of the following methods belong to the String class?
  5. Frames and applets cannot be used together in the same program.
  6. When we invoke repaint () for a Component, the AWT invokes the method:
  7. The methods wait() and noify() are defined in
  8. The modulus operator (%) can be used only with Integer operands.
  9. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  10. Java always provides a default constructor to a class.
  11. The default case is always required in the switch selection structure.
  12. What does the following line of code do?TextField text=new TextField(10);
  13. The concept of multiple inheritance is implemented in Java by
  14. The name of a Java program file must match the name of the class with the extension Java.
  15. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  16. In order to connect to a database through java program we must create _______-
  17. Session bean
  18. A constructor must always invoke its supper class constructor in its first statement.
  19. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  20. With javadoc, which of the following denotes a javadoc comment?
  21. DataInput is
  22. Which of the following will produce a value of 22 if x=22.9:
  23. It is an error to have a method with the same signature in both the super class and its subclass.
  24. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  25. Any class may be inherited by another class in the same package.
  26. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  27. We can over load methods with differences only in their return type.
  28. Which of the following are the wrapper classes?
  29. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  30. A catch can have comma-separated multiple arguments.