There are 3 types of comments in the Java language:
1.//
2./* Note content */
3./** Note content * * This is called a document comment, which is often read as Javadoc document content by the Javadoc document tool
Constants are defined in Java in final, such as: final double pi = 3.1415926;
This value cannot be changed and will be an error if the value is re-assigned below.
Constants are defined in C # with const
In Java, the declaration of local variables, cannot use the public, private, static, protected and other keywords
Common escape characters in Java
\ r Enter, equivalent to return
\ nthe line break
\f Paper Change page
\ t vertical tab, equivalent to the [tab] key
\b Backspace key, equivalent to BACKSPACE
\DDD characters represented by 1 to 3-bit octal data (DDD)
\uxxxx characters (xxxx) represented by 1 to 4 hexadecimal digits
Definition of floating-point type
If the single-precision float FLOAT1 = 1.23f; If you have a decimal, you must follow the F or F suffix
Double-precision doubles are not required when defined
Java Learning Lesson 3rd, some small knowledge