Computer Science, asked by kanustory, 8 months ago

1 What is output of following program code?
System.out.println( a + d );
System.out.println( b + c);
System.out.println( a + b );
char a =
= 'x';
int c = 4;
int b = 2;
char d = 'y';
System.out.println( c + d );​

Answers

Answered by harshans164
2

This will be your output:

4y.

Note!

If u have declared all the variables before the 3 printing statements then the o\p will be:

Xy

24

X2

4y

Similar questions