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 to declare a variable in kotlin?



How to declare a variable in kotlin?..

Answer / Dev Mani Rawat

{"declaration": "A variable is declared using the keyword 'var' or 'val', followed by its name, and then its type. The value can be assigned after the declaration on the same line, or separately on subsequent lines."}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

Why developers can prefer kotlin over java?

1 Answers  


Define when expression?

1 Answers  


How many constructors are available in Kotlin?

1 Answers  


How do you declare a variable as volatile in Kotlin ?

1 Answers  


How to declare variable in Kotlin ?

1 Answers  


What are the data classes in Kotlin? How are they defined?

1 Answers  


What are the modifier available in Kotlin ?

1 Answers  


What does "Null Safety" mean in Kotlin?

1 Answers  


How do you export code from Java to Kotlin?

1 Answers  


What is a const? How does it differ from a val?

1 Answers  


Why to use kotlin?

1 Answers  


How to write string template expression?

1 Answers  


Categories