Why is it necessary to define data types in Java programming?
Answers
Answered by
1
The complier contains a phase called the storage assignment phase. This phase allocates memory for different variables used in our program. It also creates the structure in the location to store the data efficiently. Hence, the compiler must know the data type we are likely to supply for the storage to ensure optimum utilization of memory space.
Similar questions