what would be the output of the following code? int a= 25 smaller than 40; system.out.println(a);
Answers
Answered by
6
Answer:
25 smaller than 40
Explanation:
because it is assigned to variable a
Answered by
6
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.
Learn More:
https://brainly.in/question/15373025
Similar questions