Java MCQ : Literals in Java (Multiple Choice Questions)admin
What is Literal in Java Programming ?
None of these
special type of data type
source code representation of a fixed value
special type of class
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.