Java View all facts Glossary Help |
syntactic unit > expression > object creation expression > string literal |
string 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 | ||
string literal | "Hello world!" (created at compile time) | in a context where a value is required | an expression | A string of characters between double quotation marks | to create a new object | that is the type of its result | Strings | called its result, or its return value | literal string | object creation expression | a value from its computation | a computation specified by 0 or more operators |
Next literal: array literal Up: literal, object creation expression Previous literal: numeric literal