1.

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 );​

Answer»

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



Discussion

No Comment Found