Java Programming
C Programming

Why is data type important?

User Avatar
Wiki User
2010-05-22 05:30:33

All data is stored in a computer as 0s and 1s. In order to make

this more efficient, certain sets of bits can mean different things

depending on what the data type is. Some languages, such as Java,

make sure the programmer doesn't confuse these types and mess up

the data. However, other languages allow you to do things like

multiply a string and an array. If you don't pay careful attention

to data types, you can easily end up with useless data.


Copyright © 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.