Java View all facts Glossary Help |
syntactic unit > expression > object creation expression > array literal |
array literal comparison table |
Subject | have example | occur | be part of | has definition | have purpose | have type | is a subtopic of | have value | is a synonym of | is a kind of | return | perform |
---|---|---|---|---|---|---|---|---|---|---|---|---|
literal | A value that appears explicitly in a program | Literals | symbol | |||||||||
object creation expression | in a context where a value is required | an expression | An expression that creates a new object | to create a new object | that is the type of its result | Objects | called its result, or its return value | expression | a value from its computation | a computation specified by 0 or more operators | ||
array literal | {1,2,3} (array is created at compile time) | in a context where a value is required | an expression | to create a new object | that is the type of its result | Literals | called its result, or its return value | array constant | object creation expression | a value from its computation | a computation specified by 0 or more operators |
Next literal: boolean literal Up: literal, object creation expression Previous literal: string literal