Comment
-
Comment
The description of the program function is marked with a certain symbol, and the program will not be annotated during operation
-
There are three annotation methods in java language:
// Shortcut key for single line comment ctrl+/
/* For multi-line comments, shortcut keys ctrl+shift+/ ctrl+shift+\ */
/** Documentation comments, used to explain the class, method function, attribute function, and prompt when calling*/
Keyword
-
definition
It is given a special meaning by the java language and is used as a string for special purposes.
-
Features
All letters of the keyword are lowercase
class interface enum byte short
int long float double char
boolean void
true false null
if else while switch case default do for break continue return
private protected public abstract final static synchronized
extends implement new this super instanceof
try catch finally throw throws
package import
native strictfp transient volatile assert
Reserved word
Java reserved words: The current version of java has not been used, but future versions may use named identifiers as keywords. Avoid using reserved words
- goto const