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

What is the type of arguments inside a constructor? Why do you think they are val unless explicitly set to var?

1 Answers  


What is the difference between var and val ?

1 Answers  


How does interoperable feature work in Kotlin for java ?

1 Answers  


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

1 Answers  


Can you migrate code from java to kotlin?

1 Answers  


What is the entry point to a kotlin program?

1 Answers  


What is Kotlin Native?

1 Answers  


Define high order functions in Kotlin?

1 Answers  


How do you differentiate var and val in Kotin?

1 Answers  


Who created Kotlin programming language and when?

1 Answers  


What is Null Safety in Kotlin ?

1 Answers  


What does "Null Safety" mean in Kotlin?

1 Answers  


Categories