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


How do you differentiate var and val in Kotin?



How do you differentiate var and val in Kotin?..

Answer / Umakant

In Kotlin, 'var' is used to declare mutable (changeable) properties or variables while 'val' is used to declare immutable (unchangeable) ones.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

How to convert a String to an Integer?

1 Answers  


Differentiate between generics in and out in Kotlin?

1 Answers  


What is lateinit modifier?

0 Answers  


How do you declare a variable in kotlin?

1 Answers  


What is the role of matches() method in regular expression?

1 Answers  


What is kotlin’s null safety?

1 Answers  


What is the default visibility modifier and also list the different types of modifiers?

1 Answers  


Tell me the default behavior of Kotlin classes?

1 Answers  


Is there any dependency of Secondary Constructors on Primary Constructors ?

1 Answers  


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

1 Answers  


How do you migrate the code from Java to Kotlin ?

1 Answers  


What are the advantage of using Kotlin ?

1 Answers  


Categories