Java syntax Floating-point literals A floating-point literal is
Java syntax Floating-point literals A floating-point literal is a number with a decimal point and/or exponent. A floating-point literal is written in either standard or scientific notation. For example, 123.456 is in standard notation, while 1.23456e+2 is in scientific notation. Floating-point literals are stored in the 64-bit double type (the default type), or the 32-bit float type. To store a floating-point literal in the float type, append the letter f or F to the end of the number. Boolean literals A boolean literal represents two possible states: true or false. Boolean literals are stored in the data type boolean. Unlike C/C++ where the states of a Boolean value are represented by 0 (false) and 1 (true), Java represents these states using the keywords true and false. Character literals A character literal represents a single Unicode character. Character literals are always surrounded by single quotes; for example, A and 9 are character literals. Java uses the char type to store single characters. Note The Unicode character set is a 16-bit set that supplants the 8-bit ASCII set. The Unicode set can define up to 65,536 values, which is enough to include symbols and characters from other languages. Check out the Unicode home page at www.unicode.org for more information. Escape sequences A special type of character literal is called an escape sequence. Like C/C++, Java uses escape sequences to represent special control characters and characters that cannot be printed. An escape sequence is represented by a backslash () followed by a character code. The following table summarizes these escape sequences: Character Escape Sequence Backslash \ Backspace b Carriage return r Continuation Double quote Form feed f Horizontal tab t Newline n Octal character DDD Single Quote Unicode character uHHHH 9-4 Learning Java with JBuilder
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost JSP Web Hosting services