Computer Science, asked by sreenidhe, 6 months ago

6. What is the output of this program?
Class Output
{
public static void main(String [])
{
Integer i = new Integer(257);
byte x = i byteValue(x);
System.out.print(x);
}
}​

Answers

Answered by sagarrajeshwari53
3

Explanation:

>> int i, j, m; The variable i, j, m are declared as an integer type. >> j = a[1]++; becomes j = 2++; Hence j = 2 and a[1] = 3. Hence the output of the program is 3, 2, 15.

Similar questions