Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between var and value?



What is the difference between var and value?..

Answer / Nutan Yadav

In Scala, a `var` is a mutable variable, meaning its value can be changed during runtime. A `value`, on the other hand, is an immutable variable whose value cannot change once it's assigned. In general, use `val` for constants and `var` for variables that require modification.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is flatmap in scala?

1 Answers  


What does raw method in scala string interpolation?

1 Answers  


What is the difference between :: and #:: in scala?

1 Answers  


What is a custom exception in scala?

1 Answers  


Does Scala support all Functional Programming concepts? Does Java 8 support all Functional Programming concepts?

1 Answers  


Why is scala faster than java? Explain

1 Answers  


What is currying in scala?

1 Answers  


What do you understand by tail recursion in scala ?

1 Answers  


What is scala trait?

1 Answers  


What is traversable in scala collection?

1 Answers  


What is 'Type Inference' in Scala?

1 Answers  


What do you understand by an implicit parameter in scala ?

1 Answers  


Categories