Computer Science, asked by mcjuniadiqbal, 5 months ago

State the output of the following code: [2]

System.out.print( “ADD” + 32 + „8‟ ) ;

System.out.println( „A‟ + 10 + “CHEERS” ) ;​

Answers

Answered by Pablu
2

Answer:

Output 1 : ADD328

Output 2 : A10CHEERS

Explanation:

Simple, Strings always concatenate whether it is an integer or a string.

Similar questions