What will be output of the following statement ?
System.out.println("Three plus three = " +3+3); *
Answers
Answered by
0
Output:
Three plus three = 33
Answered by
1
- Write the output of the following code segment.
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