Difference between identifiers and literals
Answers
Answered by
0
Identifiers are the name assigned to different programming constructs like classes, interfaces, methods , variables etc. Literals are the values that are assigned to Identifiers.
A literal is a specific constant value or raw data, such as 123, -456, 3.14, 'a', "hello", that is used in the program source. They are called literals because they literally and explicitly identify their values. It can be of any Java data types.
Similar questions