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 |
Does Kotlin support primitive Datatypes?
How does string interpolation work in Kotlin? Explain with a code snippet?
What are the Strings available in Kotlin ?
Does Kotlin support both Explicit conversion and Implicit conversions?
What is the entry point to a Kotlin program ? Give an example?
Is it possible to migrate the code from Java to Kotlin?
How can you declare a variable in Kotlin?
How do you export code from Java to Kotlin?
What is companion object?
How do you declare ranges operator in kotlin?
How to declare a variable in kotlin?
What does "Null Safety" mean in Kotlin?