Java View all facts Glossary Help |
syntactic unit > access unit > variable > constant |
constant comparison table |
Subject | declare anywhere in | have | be | initialize by | is a kind of | is a subtopic of | define by | has definition | allow |
---|---|---|---|---|---|---|---|---|---|
constant local variable | a method | a lifetime which is the time of one execution of its block | as private as possible | an assignment statement | local variable | Constants | in Java 1.0 | ||
constant that is declared in an interface | comment if it is non-obvious | implicitly all of: | constant | Interfaces | |||||
named constant | comment if it is non-obvious | as private as possible | constant | Constants | A constant that has a name | ||||
string constant | comment if it is non-obvious | as private as possible | constant | Strings | placing it in double quotes |
Next variable: local variable Up: variable Previous variable: variable with no access modifier