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.
About Question com.enthuware.ets.scjp.v6.2.372 :
Moderator: admin
-
- Posts: 3
- Joined: Thu Jan 21, 2016 3:15 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.372 :
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.
Who is online
Users browsing this forum: No registered users and 2 guests