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...


Differentiate between val and var in Kotlin?



Differentiate between val and var in Kotlin?..

Answer / Asjad Iqbal

"'val' is used to declare a constant variable that cannot be reassigned, while 'var' is used for mutable variables that can be reassigned."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

Explain the use of extension functions

1 Answers  


In Kotlin can interface have implemented method?

1 Answers  


How does string interpolation work in Kotlin? Explain with a code snippet?

1 Answers  


Does Kotlin support Checked Exceptions like in Java?

1 Answers  


Give an example of high order functions?

1 Answers  


What are the programming types that Kotlin supports?

1 Answers  


How many ways to create array in kotlin?

1 Answers  


Name some of the features that have Kotlin but not in present in Java?

1 Answers  


What are the features of java has that kotlin does not?

1 Answers  


What is the use of rangeTo() function?

1 Answers  


How to declare a Kotlin variable?

1 Answers  


What is the difference between inline and infix functions? Give an example of each.

1 Answers  


Categories