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 declaration variable using val or var in kotlin?



What is the difference between declaration variable using val or var in kotlin?..

Answer / Gaurav Aggarwal

{"val": "val is a constant value that cannot be reassigned once it has been initialized.", "var": "var can be reassigned multiple times after initialization."}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

Which companies use kotlin?

1 Answers  


Does Kotlin support Checked Exceptions like in Java?

1 Answers  


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

0 Answers  


What are the advantages of using kotlin?

1 Answers  


What is the difference between val and var?

1 Answers  


Can you migrate the code from java to kotlin?

1 Answers  


what is the use of extension functions in Kotlin?

1 Answers  


What is Ranges operator in Kotlin?

1 Answers  


How to handle null exceptions in Kotlin programming?

1 Answers  


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

1 Answers  


Who created Kotlin programming language and when?

1 Answers  


What are the advantage of using Kotlin ?

1 Answers  


Categories