Question: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.printIn(i); 
    } 
}
 

A 2 

B 4 

C 8 

D 16 

+ Answer
+ Explanation
+ Report
Total Preview: 1050

Copyright © 2025. Powered by Intellect Software Ltd