- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the difference between data types and literals in Java?
Data types are those which specify the type of data represented by the variable and literal is the that is stored in to the variable.

A literal is a source code representation of a fixed value. They are represented directly in the code without any computation.
Literals can be assigned to any primitive type variable.
Example
byte a = 68; char a = 'A'
- Related Articles
- What is the difference between character literals and string literals in Java?
- What is the difference between integer and floating point literals in Java?
- Difference between Fundamental data types and derived Data Types
- What is the difference between MySQL BOOL and BOOLEAN column data types?
- Difference between fundamental data types and derived data types in C++
- What is the difference between Data Mining and Data Warehouse?
- What is the difference between data security and data integrity?
- What is the difference between data and information in DBMS?
- What Is the difference between types of cloth?
- What is the difference between Java and Core Java?
- What is the difference between Java and Java EE
- What is the difference between /* */ and /** */ comments in Java?
- What is the difference between >> and >>> operators in Java?
- What is the difference between Java and JavaScript?
- What is the difference between Sequence control and data control?

Advertisements