Answer the question
In order to leave comments, you need to log in
Why are byte and short data types needed in Java?
Why are there so many data types in a programming language?
Especially byte or short, because they are completely replaced by int. What are they needed for? What is their profit?
ps I study programming from scratch
Answer the question
In order to leave comments, you need to log in
Good afternoon!
Why are there so many data types in a programming language?
Especially byte or short, because they are completely replaced by int. What are they needed for? What is their profit?
Mainly size in memory. Well, on the network, data is transmitted precisely by bytes, so that they would not be repackaged and not given once again and they are used.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question