

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the program? public class Test { public static void leftshift(int i, int j) { i <<= j; } public static void main(String args[]) { int i = 4, j = 2; leftshift(i, j); System.out.println(i); } } |
A. | 2 |
B. | 4 |
C. | 8 |
D. | 16 |
Answer» C. 8 | |