Computer Science, asked by arpita3493, 6 months ago

17. What would be the output of the following code?
int a=25<40;
System.out.println(a);​

Answers

Answered by dusadkajal25
1

Answer:

25 smaller than 40

Explanation:

because it is assigned to variable a

True or 1 will be the output of the given question.

Explanation:

As a is storing the value 25 which is already mentioned in the given question.The statement a= 25 smaller than 40; holding the true or false based on the condition.

As 25 is less then the 40 so it stores the true under it. To execute the instruction and display on console we have to convert into the boolean datatype.

After converting into the boolean value the statement system.out.println(a) print true on the console window.

Answered by sumeetjeet451
1

Answer:

upper one is correct

Explanation:

you should write from there

Similar questions