MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program? class string_class { public static void main(String args[]) { String obj = "hello"; String obj1 = "world"; String obj2 = "hello"; System.out.println(obj.equals(obj1) + " " + obj.equals(obj2)); } } |
| A. | False false |
| B. | True true |
| C. | True false |
| D. | False true |
| Answer» E. | |