Question
class Output {
public static void main(String args[])
{
int a = 1;
int b = 2;
int c = 3;
a |= 4;
b >>= 1;
c
What is the output of this program?
class Output {
public static void main(String args[])
{
int a = 1;
int b = 2;
int c = 3;
a |= 4;
b >>= 1;
c
Answer: Option A
Was this answer helpful ?
None.
output:
$ javac Output.java
$ java Output
3 1 6
Was this answer helpful ?
More Questions on This Topic :
Question 10.
What is the output of this program?
class terna....
Submit Solution