Single Choice Not Set

QWhat is the output of the following program?
class A{
        public static void main(String args[]){
	        byte b;
   	        int i = 258;
	        double d = 325.59;

	        b = (byte) i;
	        System.out.print(b);

	        i = (int) d;
	        System.out.print(i);

                b = (byte) d;
                System.out.print(b);
        }
}

ID: #2010 Java Data Types and Variables - MCQ 2,106 views
Question Info
#2010Q ID
Not SetDifficulty
Java Data Types and Variables - MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 258 325 325
  • B 258 326 326
  • C 2 325 69
  • D Error
Correct Answer

Explanation

2 325 69

Share This Question

Challenge a friend or share with your study group.