Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.372 :

Posted: Sun Mar 20, 2016 9:23 am
by jadabesi
How we can represent an integer = 2^16 = 65536 in char type which can hold values of '\u0000' (or 0) and a maximum value of '\uffff' (or 65,535 inclusive = 2^16 -1) ?
for this question i have chosen 2 and 3 options.

Re: About Question com.enthuware.ets.scjp.v6.2.372 :

Posted: Sun Mar 20, 2016 9:11 pm
by admin
The question doesn't ask you to represent 2^16. It is asking about the "range" i.e. the total number of integers that can be represented. If you can represent integers from 0 to 2^16-1, then the range is 2^16.