MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?public class stringClass_Example { public static void main(String args[]) { String str = "Interview"; String str1 = "Mania"; String str2 = "Interview"; System.out.println(str.equals(str1) + " " + str.equals(str2)); } } |
| A. | true true |
| B. | false false |
| C. | false true |
| D. | true false |
| E. | None of these |
| Answer» D. true false | |