MCQOPTIONS
Saved Bookmarks
| 1. |
What could be output of the following fragment of code?public class Test{public static void main(String args[]){String x = "hellow";int y = 9;System.out.println(x += y);}} |
| A. | hrows an exception as string and int are not compatible for addition |
| B. | ellow9 |
| C. | hellow |
| D. | ompilation error |
| E. | one of these |
| Answer» C. hellow | |