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 declaration?



What is the difference between Val and var declaration?..

Answer / Rama Kant

{"data": [n "In Kotlin, 'val' denotes a constant or immutable variable, which cannot be reassigned once it has been initialized. On the other hand, 'var' can be reassigned throughout its lifetime."]}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

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

1 Answers  


Does Kotlin support both Explicit conversion and Implicit conversions?

1 Answers  


What do you mean by kotlin string interpolation?

1 Answers  


Give example to declare variable using both val and var in Kotlin?

1 Answers  


Does you class compile if the package is wrong? Why?

1 Answers  


What is inner class in Kotlin?

1 Answers  


Which companies use kotlin?

1 Answers  


Define Kotlin Programming Language?

1 Answers  


Why is Kotlin preferred over Java? Important benefits of kotlin?

1 Answers  


What is the use of rangeTo() function?

1 Answers  


What are the modifiers that are available in kotlin?

1 Answers  


Is there any Ternary Conditional Operator in Kotlin like in Java?

1 Answers  


Categories