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

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
jadabesi
Posts: 3
Joined: Thu Jan 21, 2016 3:15 pm
Contact:

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

Post 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.

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests