Java MCQ : Literals in Java (Multiple Choice Questions)admin
What is Literal in Java Programming ?
source code representation of a fixed value
special type of class
None of these
special type of data type
It is possible to assign a literal to a variable of a primitive type.
boolean result = true;Which type of literal is assigned to the variable "result" ?
Which type of literal is written in pair of single quote ?
An integer literal is of type long if and only if it has suffix - __________ in Java Programming.
There are 5 questions to complete.