Forums Register Login

unicode

+Pie Number of slices to send: Send
i studied that char datatypes for example 'g' stores in unicode format.....
i have a confusion that all characters i have typed in a program are stored in unicode format or not..
ifnot what is the use of storing the char type only in unicode format
for example in the following pgm

i have thought that each character i have typed in this pgm is stored in unicode format.. (for example each character in public)this is wright or wrong...






+Pie Number of slices to send: Send
Java stores characters as Unicode (specifically, an unsigned 16-bit integer per character which represents the code units of UTF-16). So yes, all Strings declared in a Java program are Unicode. Have a read of this very good article.
+Pie Number of slices to send: Send
I *think* the OP is asking about the source code itself.
+Pie Number of slices to send: Send
All your questions can be answered if you look in the Java™ Language Specification (JLS). The answer will be there.

You might not understand it, but it's still there.




Actually I think that particular JLS chapter is very easy to understand.
So I left, I came home, and I ate some pie. And then I read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 528 times.
Similar Threads
I don't get it!
get numeric character representation for Polish unicode characters
Char into Integer
Change table column sizes and horizontal scoll not working
Did u all know this ??????
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:00:45.