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

What are different types of constructors in kotlin?

1 Answers  


What is companion object?

1 Answers  


What are Data classes ? Aren’t they available in Java ?

0 Answers  


What is Range in Kotlin?

1 Answers  


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

1 Answers  


What is the equivalent of switch expression in Kotlin? How does it differ from switch?

1 Answers  


Which method is used to get array last index?

1 Answers  


Why developers can prefer kotlin over java?

1 Answers  


Explain kotlin’s null safety?

1 Answers  


Define when expression?

1 Answers  


Explain the Main features of kotlin which are not available in java?

1 Answers  


What is the difference between Val and var declaration?

1 Answers  


Categories