Java Escape character

Source: Internet
Author: User
Tags control characters

There are several types of escape characters in Java, which are common:
Octal escape character, format: \ + 1 to 3-bit octal digits, such as \1, \20, range from/to \377, that is, the maximum value is 255.
Unicode escape character, format: \u + four hexadecimal digits, range \u0000 ~ \uffff, i.e.: 0~65535
Special characters, including 3: \ ": double quotes; \ ': single quote; \ \: Backslash
Control characters: include 5: \ ' single quote character; \ \ backslash character; \ r carriage return; \ n Wrap; \f The paper for the page; \ t horizontal jump grid; \b Backspace
So/72 is octal, as decimal 58 corresponds to ASCII encoded as colon

1. in ASCII code, there are 4 groups of characters: a group of control characters, such as LF,CR , etc., the corresponding ASCII code value is the smallest ;

Group 2 is the number 0~9;
The first 3 groups are uppercase letters A~Z;
The first 4 groups are lowercase letters a~Z.
The corresponding values of these 4 groups are gradually becoming larger. The relation of the character corresponding to the value is " lowercase letter is larger than the corresponding number of uppercase letters, the greater the value of the future corresponding to the greater "
2.ASCII Code is the United States Standard Information Interchange code, by the International Organization for Standardization designated as a standard, there are 7 -bit code and 8 -bit code two versions, more commonly used is 7 -bit code.
3.ASCII Code is a 7 -bit binary number for the encoding of a character, its encoding range from 0000000Bto1111111B, a total of 27=128 a different coded value.
1.in ASCII code, there are 4 groups of characters: one is control characters, such as LF,CR , etc., the corresponding ASCII code value is the smallest ; Group 2 is the number 0~9, the 3 Group is the capital letter a~Z, and the group 4 is a lowercase letter a ~z. The corresponding values of these 4 groups are gradually becoming larger. The relationship of the corresponding numeric value of the character is " lowercase letters are larger than uppercase letters, and the older the characters, the greater the value " 2. ASCII Code is the United States Standard Information Interchange code, by the International Organization for Standardization designated as a standard, there are 7 -bit code and 8 -bit code two versions, more commonly used is 7 -bit code. 3.ASCII Code is a 7 -bit binary number for the encoding of a character, its encoding range from 0000000Bto1111111B, a total of 27=128 a different coded value.

Java Escape character

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.