0
302views
Write the output of the following code:

Program

public class Main
        {
            public static void main(String[] args) {
            byte b;
            int j=257;
            double d=323142;
            b = (byte) j;
            System.out.println(b);
            b=(byte)d;
            System.out.println(b);
            }
        }
1 Answer
0
3views

Output:-
1
70

Please log in to add an answer.