explain unicode in javajava uses the unicode


Explain unicode in java?

Java uses the Unicode character set. It is a two-byte character code set which has characters representing almost overall characters in almost all human alphabets and writing systems around the world involving Arabic, English, Chinese and more.

Unfortunately several operating systems and web browsers do not handle Unicode. For the most elements Java will properly handle the input of non-Unicode characters. The first 128 characters in the Unicode character set are identical to the general ASCII character set. The second 128 characters are identical to the upper 128 characters of the ISO Latin-1 extended ASCII character set. It's the further 65,280 characters in which present problems.

You can refer to a particular Unicode character through using the escape sequence \u followed through a four digit hexadecimal number. For instance

\u00A9

 

?

 

The copyright symbol

\u0022

 

"

 

The double quote

\u00BD

 

?

 

The fraction 1/2

\u0394

 

Δ

 

The capital Greek letter delta

\u00F8

 

?>

 

A little o with a slash through it

You can even use the full Unicode character sequence to name your variables. Therefore chances are your text editor doesn't handle more than basic ASCII extremally well. You can use Unicode escape sequences instead such as this

String Mj\u00F8lner = "Hammer of Thor";

but frankly this is way more trouble than it's worth.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: explain unicode in javajava uses the unicode
Reference No:- TGS0284367

Expected delivery within 24 Hours