Computer Science, asked by criya0709, 5 months ago

What will be output of the following statement ?

System.out.println("Three plus three = " +3+3); *

Answers

Answered by Oreki
0

Output:

Three plus three = 33

Answered by anindyaadhikari13
1

\star\:\:\:\sf\large\underline\blue{Question:-}

  • Write the output of the following code segment.

\star\:\:\:\sf\large\underline\blue{Answer:-}

Given code,

System.out.println("Three plus three = "+3+3);

Output:-

Three plus three = 33

Here 3+3 not equals to 6.

Here, + acts as concatenation operator which concatenates 3 and 3

So, it will print

Three plus three = 33

Similar questions