Java   View all facts   Glossary   Help
syntactic unit > access unit > variable > constant
Next variablelocal variable    Upvariable    Previous variablevariable with no access modifier   

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 variablea methoda lifetime which is the time of one execution of its blockas private as possiblean assignment statementlocal variableConstants  in Java 1.0
constant that is declared in an interface comment if it is non-obviousimplicitly all of:
  • public
  • static
  • final
  •  constantInterfaces   
    named constant comment if it is non-obviousas private as possible constantConstants A constant that has a name 
    string constant comment if it is non-obviousas private as possible constantStringsplacing it in double quotes  

    Next variablelocal variable    Upvariable    Previous variablevariable with no access modifier