File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Character Wrapper Class. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Character Wrapper Class. " Watch "Character Wrapper Class. " New topic
Author

Character Wrapper Class.

N.Senthil Kumar
Ranch Hand

Joined: Jul 07, 2009
Posts: 50
Hi Guys...

May i know what makes the Character Wrapper Class as Special when compared to other Wrapper Classes.

Thanks in Advance.


N.Senthil Kumar
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Character: represents a value of unicode text(16 bit) . and Unicode

hth
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19538
    
  16

Character is only as special compared to Integer etc as char is compared to int etc. The biggest difference (apart from all the static utility methods) is that there is no static parseChar method. But why should there be, since converting a String into a char is just taking the first character from the String, if any.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36453
    
  15
Well, char is unsigned and all the other kinds of integer are two's complement, but that is part of what Rob said about
Character is only as special compared to Integer etc as char is compared to int etc.
N.Senthil Kumar
Ranch Hand

Joined: Jul 07, 2009
Posts: 50
Thank You , Friends
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19538
    
  16

You're welcome.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Character Wrapper Class.
 
Similar Threads
unboxing
Dereferenced Error Code
?a?
valueOf() and parseXxx() for Character and Boolean wrapper classes - sounds like erratum in K&B
'==' operator and autoboxing