Java   View all facts   Glossary   Help
syntactic unit > symbol > literal
Next symbolname    Upsymbol    Previous symboloperator   

literal comparison table
Subject have example occur be part of has definition have purpose be have type is a subtopic of have value is a synonym of is a kind of return perform
array literal{1,2,3} (array is created at compile time)in a context where a value is requiredan expression to create a new object that is the type of its resultLiteralscalled its result, or its return valuearray constantobject creation expressiona value from its computationa computation specified by 0 or more operators
boolean literaltrue    true or false Literals  literal  
character literal'A'    any single Unicode character Literals  literal  
numeric literal16.7      Literals  literal  
string literal"Hello world!" (created at compile time)in a context where a value is requiredan expressionA string of characters between double quotation marksto create a new object that is the type of its resultStringscalled its result, or its return valueliteral stringobject creation expressiona value from its computationa computation specified by 0 or more operators

Next symbolname    Upsymbol    Previous symboloperator