Which of the following is a Literal Representation?
100
'100'
Sample
None of the mentioned
View Answer
Correct Answer: A — 100
Explanation:
A constant value in Java is created by using a 'Literal Representation' of it. Integer Literals are not enclosed in quotes where as String Literals are enclosed in quotes.
