Series: Subject: Topic:
Question: 613 of 995

# What is the range of the char type?

A)

0 to 215-1

B)

0 to 216-1

C)

0 to 215

D)

0 to 216

kancherla sagar

Answered On : Dec 13th, 2005

the range of char is 1 Byte.

i.e 16 bits.

so the range will be 0 to 2^16-1

masarrat

Answered On : Jul 24th, 2006

ans is 2 to the power 16 which is 65535 because char does not use msb as a sign bit. its uses all 16 bits for storing values

Ramesh

Answered On : Dec 19th, 2006

0 to 215-1

abhishek79

Answered On : Mar 14th, 2007

the range of char is 0 to 2^16 -1 reffer (http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html)
char range is 65535 that is equivalent to 2^16 -1 so answer c is right

abhishek79

Answered On : Mar 14th, 2007

abhishek79

Answered On : Mar 14th, 2007

the range of char is 0 to 2^16 -1
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html) char range is 65535 that is equivalent to 2^16 -1 so answer B is right

jansi

Answered On : Feb 28th, 2012

0 to 2^15-1