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


Which is the default modifier for a method, variable, class?



Which is the default modifier for a method, variable, class?..

Answer / Ateequr Rehman

The default access modifier for methods and properties in Kotlin is private within the file they are defined. The default access modifier for classes is public.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

What is the Elvis Operator?

1 Answers  


How to handle null exceptions in Kotlin programming?

1 Answers  


What are the features available in kotlin but not in java?

1 Answers  


What are Data classes ? Aren’t they available in Java ?

0 Answers  


How do you migrate the code from Java to Kotlin ?

1 Answers  


What is the difference between object { } block and companion object { } code block in Kotlin?

0 Answers  


Which is the default modifier for a method, variable, class?

1 Answers  


What is the difference between const vs val?

1 Answers  


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

0 Answers  


Can kotlin code be executed without jvm?

1 Answers  


What are the advantages of using kotlin?

1 Answers  


What is !in operator in Kotlin?

1 Answers  


Categories