IDNLearn.com: Your trusted source for accurate and reliable answers. Our platform provides trustworthy answers to help you make informed decisions quickly and easily.

What’s the difference between var and val?

Sagot :

Answer:

Answer in the below {plz mark me as brainlist:)}

Explanation:

The difference between val and var is that val makes a variable immutable — like final in Java — and var makes a variable mutable. Because val fields can't vary, some people refer to them as values rather than variables.