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

Define enum in Kotlin?

1 Answers  


What is the use of abstraction in Kotlin?

1 Answers  


Can you tell me what kinds of programming types does Kotlin support?

1 Answers  


Differentiate between break and continue?

1 Answers  


Which type of programming does kotlin support?

1 Answers  


How do you declare a variable as volatile in Kotlin ?

1 Answers  


How to declare variable in Kotlin ?

1 Answers  


What is the entry point to a kotlin program?

1 Answers  


Which method is used to get array last index?

1 Answers  


What are the types of strings available in kotlin?

1 Answers  


Who created Kotlin programming language and when?

1 Answers  


Why you should shift from Java to kotlin?

1 Answers  


Categories