17. What would be the output of the following code?
int a=25<40;
System.out.println(a);
Answers
Answered by
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
1
Answer:
upper one is correct
Explanation:
you should write from there
Similar questions
Hindi,
3 months ago
Environmental Sciences,
3 months ago
India Languages,
3 months ago
English,
6 months ago
English,
10 months ago
Business Studies,
10 months ago
Social Sciences,
10 months ago