Welcome to Westonci.ca, your one-stop destination for finding answers to all your questions. Join our expert community now! Get quick and reliable answers to your questions from a dedicated community of professionals on our platform. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.

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.