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 an initialization block in kotlin class?



How to declare an initialization block in kotlin class?..

Answer / Sachchidanand Shukla

"Initialization Block": It is declared inside the class before any constructor, and it's enclosed by braces ({})

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

How can you handle null exceptions in Kotlin?

1 Answers  


How does string interpolation work in Kotlin? Explain with a code snippet?

1 Answers  


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

1 Answers  


Define high order functions in Kotlin?

1 Answers  


What is the difference between val and var?

1 Answers  


Can you execute Kotlin code without JVM?

1 Answers  


What is nested class in Kotlin?

1 Answers  


What is the type of arguments inside a constructor?

1 Answers  


Does Kotlin provide any additional functionalities for standard Java packages or standard Java classes?

0 Answers  


How to declare an initialization block in kotlin class?

1 Answers  


What are the types of strings available in Kotlin? And, what do you mean by Kotlin String Interpolation?

1 Answers  


How to declare variable in Kotlin ?

1 Answers  


Categories