KnowledgeBoat Logo

Computer Applications

Why is it necessary to define data type in Java programming?

Values & Data Types Java

ICSE

174 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

109 Likes


Related Questions