Sail E0 Webinar
Question


What is the output of this program?


class leftshift_operator {
public static void main(String args[])
{
byte x = 64;
int i;
byte y;
i = x
Options:
A .  0 64
B .  64 0
C .  0 256
D .  256 0
Answer: Option D

None.
output:
$ javac leftshift_operator.java
$ java leftshift_operator
256 0



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers