how integers and real data types are treated differently in Java?
please answer this
Answers
Answer:Integer and Real Data Types. ... Integer variables store numbers exactly and are mainly used to count discrete objects. Real variables are useful many other circumstances as they store numbers using a floating-point representation which can handle numbers with a fractional part as well as whole numbers.
Explanation:
Pls mark as brainliest and pls try to be friend with me
We already know about variables and how to store data, but we need to look more closely at what types of data Java works with. In many ways the need to consider the "type" of data is something of a throwback to the early days of computing when we worked very closely with how the data was stored. Back then it mattered how much storage you used and different ways of storing the same data were used simply because of efficiency considerations - why use two bytes when one will do? Today such issues are far less important but we still work with the basic data types that were introduced then.
There are also some more theoretical reasons why we should make use of a range of data types and select the ones that just suit what we are trying to do, but all of this become much clearer after we have seen some real examples.