Techoceanhub logo

Category Kotlin

Performance optimization tips

Optimizing the performance of Java applications is crucial to ensure efficient execution and utilization of system resources. Here are some performance optimization tips in Java: Use efficient data structures and algorithms: Choose the appropriate data structures and algorithms based on…

Different modifiers in Kotlin (Chapter-14)

let us study different modifiers in kotlin, they are listed as private, protected, internal, and public. By default visibility modifier is public. If you do not specify any visibility modifier, public is used by default, which means that your declarations will be…

What is lateinit keyword in kotlin?(Chapter-12)

The defination of lateinit keyword is very simple as the name suggest it says ” Late initialization“. This keyword is often considered as one of the best feature which makes kotlin more advantageous to use but we should not confuse…

Inheritance in Kotlin – (Chapter-8)

We have worked with inheritance concepts in Java, c#, and many other languages, but now let’s see how the inheritance concept works with Kotlin. By definition, we all know that inheritance means acquiring some or whole properties of the parent…

What is data class in Kotlin- Chapter-7

We have made classes in Java, in the same manner, there are classes in Kotlin as well but they are fully known as Data Classes in kotlin. A data class is something that holds data for us. These types of…