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 Const and Val?



What is the difference between Const and Val?..

Answer / Dheeran Singh

In Kotlin, 'const' is a special type of 'val' used for properties that are expected to be constant at compile time. Unlike 'val', 'const' values can only be initialized with a constant expression.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

What are the types of strings available in kotlin?

1 Answers  


Is it possible to migrate the code from Java to Kotlin?

1 Answers  


What are the Strings available in Kotlin ?

1 Answers  


Where does this Kotlin run ? Does it have some kind of different runtime environment ?

1 Answers  


List down some kotlin data class built in methods?

1 Answers  


List some of the key modifiers in kotlin?

1 Answers  


What is !in operator in Kotlin?

1 Answers  


Can we migrate code from Java to Kotlin?

1 Answers  


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

1 Answers  


Can you execute Kotlin code without JVM?

1 Answers  


What type of programming does Kotlin support?

1 Answers  


How to compare two strings in Kotlin?

1 Answers  


Categories