Search This Blog

Sunday, July 13, 2025

Bitwise Shift Operators - 1

 What is the output of the following code?

/**

  * @author Nancy K.A.N.

 */

public class BitwiseDemo1 {

    public static void main(String[] args) {

        int a =4;

        int b = a<<3;

        System.out.println(b);

    }

}


By Nancy K.A.N.

@22:06 13-Jul-2025


Follow my YouTube channel @CodingWithNancy

No comments:

Post a Comment