Computer Science, asked by nikhil1575, 5 months ago

What the following lines will print on console on execution?

int x=1;

System.out.println(“Output :”+x+4);

System.out.println(++x<6);​

Answers

Answered by marvel281
0

Answer:

Output :14

true

Explanation:

since during printing time it is printing the word "Output" since it is enclosed in brackets and along with it is also printing value of 'x' which is '1' associated with '4' since it is in printing statement so no addition will be there

and ,:

another statement print the Boolean value i.e, "True" since it is checking the value of variable 'x' increase by one to be less than '6' which is true since value of 'x' is initialised as '1' and when it is added it changes to two....

MARK ME AS THE BRAINLIEST

&

FOLLOW ME.......

Similar questions