Computer Applications
Why is it necessary to define data type in Java programming?
Values & Data Types Java
266 Likes
Answer
Data types tells Java how much memory it should reserve for storing the value. Data types also help in preventing errors as the compiler can check and flag illegal operations at compile time itself.
Answered By
160 Likes
Related Questions
Boolean type data is used to test a condition and results in either true or false.
What is meant by data type? Name two types of data type.
Define the following with an example:
(a) variable
(b) constant
(c) boolean data type
(d) coercion
(e) primitive data type
(f) non-primitive data type
What is a token? Name different types of tokens.