Question
class leftshift_operator {
public static void main(String args[])
{
byte x = 64;
int i;
byte y;
i = x
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
Answer: Option D
Was this answer helpful ?
None.
output:
$ javac leftshift_operator.java
$ java leftshift_operator
256 0
Was this answer helpful ?
More Questions on This Topic :
Question 10.
What is the output of this program?
class inc....
Submit Solution