Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
Programmer Certification (OCPJP)
What is the range of Char
Shailendra Guggali
Ranch Hand
Posts: 86
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Q : What is the range of char datatype?
1. 0 - 65535 OR 2. 0 - 65536
( Complete Ref - Naughton says 2 but JQ+ answers as 1 )
nidiya gaspar
Greenhorn
Posts: 7
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi ,
I guess "1" is the correct answer
regards
nidiya
Tualha Khan
Ranch Hand
Posts: 287
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It's 0 to 2^16 -1
which is the first option in the question!
Bye,
Tualha Khan
SCJP2, BEA WLS 6.0, DB2 UDB 7.1
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Conversion of Primitives
Q from examulator.com
Range of char type 0 -216 ???
about char declaration
Mock #2 and Question #28
More...