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


Give example to declare variable using both val and var in Kotlin?



Give example to declare variable using both val and var in Kotlin?..

Answer / Manish Jaiswal

"val NUMBER_OF_PEOPLE: Int = 10nvar IS_RAINING: Boolean = false"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

Can we create uninitialized array in kotlin?

1 Answers  


Where does the Kotlin run and what is the entry point of Kotlin?

1 Answers  


What are different types of constructors in kotlin?

1 Answers  


Does Kotlin support primitive datatypes as like in Java?

0 Answers  


Differentiate between val and var in Kotlin?

1 Answers  


How to declare variables in Kotlin?

1 Answers  


Can you execute Kotlin code without JVM?

1 Answers  


What is the difference between inline and infix functions? Give an example of each.

1 Answers  


Explain the data classes in kotlin?

1 Answers  


Explain functions in kotlin?

1 Answers  


Why you should switch to Kotlin from Java?

1 Answers  


List some of the key modifiers in kotlin?

1 Answers  


Categories