The Java char type and String objects also
The Java char type and String objects also support Unicode. But if you’re concerned about having to labor with two-byte characters, you can relax. The String API makes the character encoding transparent to you. Unicode is also ASCII-friendly; the first 256 characters are defined to be identical to the first 256 characters in the ISO8859-1 (Latin-1) encoding; if you stick with these values, there’s really no distinction between the two. Most platforms can’t display all currently defined Unicode characters. As a result, Java programs can be written with special Unicode escape sequences. A Unicode character can be represented with this escape sequence: uxxxx xxxx is a sequence of one to four hexadecimal digits. The escape sequence indicates an ASCII- encoded Unicode character. This is also the form Java uses to output a Unicode character in an environment that doesn’t otherwise support them. Java stores and manipulates characters and strings internally as Unicode values. Java also comes with classes to read and write Unicode-formatted character streams. 4.2 Comments Java supports both C-style block comments delimited by /* and */ and C++ - style line comments indicated by //: /* This is a multiline comment. */ // This is a single-line comment// and so // is this As in C, block comments can’t be nested. Single- line comments are delimited by the end of a line; extra // indicators inside a single line have no effect. Line comments are useful for short comments within methods; they don’t conflict with wrapping block comment indicators around large chunks of code during development. 4.2.1 Javadoc Comments By convention, a block comment beginning with /** indicates a special doc comment . A doc comment is designed to be extracted by automated documentation generators, such as the DSK’s javadoc program. A doc comment is terminated by the next */, just as with a regular block comment. Leading spacing up to a * on each line is ignored; lines beginning with @ are interpreted as special tags for the documentation generator. Here’s an example: /** * I think this class is possibly the most amazing thing you will * ever see. Let me tell you about my own personal vision and * motivation in creating it. *
* It all began when I was a small child, growing up on the * streets of Idaho. Potatoes were the rage, and life was good… * - 66
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Tomcat Web Hosting services