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 val and var?



What is the difference between val and var?..

Answer / Abhishek Tripathi

val is a read-only property, meaning it can only be assigned a value at its declaration time. var, on the other hand, is a mutable property that can be reassigned a new value multiple times.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

Does Kotlin support both Explicit conversion and Implicit conversions?

1 Answers  


What is the entry point to a Kotlin program ? Give an example?

1 Answers  


Describe the use of extension function?

1 Answers  


Name the extension methods Kotlin provides to java.io.File?

1 Answers  


How is kotlin integrated with Gradle?

1 Answers  


List the number of constructors available in Kotlin?

1 Answers  


What is the difference between Return Type Unit and Return Type Nothing in Kotlin?

1 Answers  


List some of the key modifiers in kotlin?

1 Answers  


Define Lambda Function in Kotlin?

1 Answers  


What is Ranges operator in Kotlin?

1 Answers  


What is the entry point to a kotlin program?

1 Answers  


What are the features that kotlin support and java doesn’t?

1 Answers  


Categories