What is the difference between data types and literals in Java?
From Java Data types tutorial
Data types :
Primitive types are special data types built into the language; they are not objects created from a class
Literal :
A Literal is the source code representation of a fixed value; literals are represented directly in your code without requiring computation
boolean result = true;
boolean - is data type
true - is literal