MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following program code?public class Test{public static void main(String args[]){String s = "what";StringBuffer sb = new StringBuffer("what");System.out.print(sb.equals(s)+","+s.equals(sb));}} |
| A. | rue,true |
| B. | alse,true |
| C. | rue,false |
| D. | alse,false |
| E. | one of these |
| Answer» E. one of these | |