State the output of the following code: [2]
System.out.print( “ADD” + 32 + „8‟ ) ;
System.out.println( „A‟ + 10 + “CHEERS” ) ;
Answers
Answered by
2
Answer:
Output 1 : ADD328
Output 2 : A10CHEERS
Explanation:
Simple, Strings always concatenate whether it is an integer or a string.
Similar questions