What is the difference between data types and literals in Java?
A literal is a fixed value that is assigned to a variable (of a specific data type) directly without using a constructor
For eg:
String var1 = "Java"; -- here "Java" is a literal
String var2 = new String("Java"); -- here "Java" is not a literal