Page 1 of 1

About Question com.enthuware.jfcja.v8.2.319 :

Posted: Sat Dec 11, 2021 4:22 pm
by willer.morais
In this case it would not print, in addition to the 9 8 7 6 5 4 3 2 1, 0 -1 ... -2147483648 ? So the answer should be 2147483648 + 10 or None of these?

Re: About Question com.enthuware.jfcja.v8.2.319 :

Posted: Sun Dec 12, 2021 1:33 am
by admin
None of these just means that none of the other given options are correct. But yes, if 2147483648 + 10 were an option, then that would be correct.
In the exam, you will not be expected to know exact values of such large numbers, so, such an option would be highly unlikely to appear in the exam.
You just need to understand that it will not be 10 and why.

Re: About Question com.enthuware.jfcja.v8.2.319 :

Posted: Sun Dec 12, 2021 11:45 am
by willer.morais
admin wrote:
Sun Dec 12, 2021 1:33 am
None of these just means that none of the other given options are correct. But yes, if 2147483648 + 10 were an option, then that would be correct.
In the exam, you will not be expected to know exact values of such large numbers, so, such an option would be highly unlikely to appear in the exam.
You just need to understand that it will not be 10 and why.
OK thank you!

Re: About Question com.enthuware.jfcja.v8.2.319 :

Posted: Sat May 14, 2022 12:30 pm
by chiragniyogi
Can u explain the whole what is this all about I am a bit confused

Re: About Question com.enthuware.jfcja.v8.2.319 :

Posted: Sun May 15, 2022 12:27 pm
by admin
Can you specify which part are you confused about so that we can provide more explanation? Because without any clue as to what you don't understand, it is difficult to explain. Basically, it just a do-while loop that is decrementing and printing the variable x. But an int variable has only 4 bytes to store the number so there is a max value and a min value. If a number is beyond those two numbers then that number cannot be stored. It will simply be mapped to some number between min and max.

If you are not sure about this, you will need to read a bit about how integers are stored in an int variable.