πŸ“Š JAVA
Q. What is the output of this program?
Code:
public class LeftShift_Operator 
    {
        public static void main(String args[]) 
        {        
             byte A = 65;
             int i;
             byte b; 
             i = A << 2;
             b = (byte) (A << 2);
             System.out.print(i + " " + b);
        } 
    }
  • (A) 250 2
  • (B) 260 2
  • (C) 260 4
  • (D) 230 6
πŸ’¬ Discuss
βœ… Correct Answer: (C) 260 4

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
414
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Rajeev Malhotra
Publisher
πŸ“ˆ
97%
Success Rate