Soumak De has Published 62 Articles

What is the equivalent of Java static methods in Kotlin?

Soumak De

Soumak De

Updated on 27-Oct-2021 08:22:43

498 Views

In Java, "static" keyword is used for efficient memory management. Once a variable or method is declared as static, then the JVM will allocate memory for these variable only once. Usually static variables are used to declare common properties of a class, for example, "Name of the institution". In the ... Read More

How to iterate over a Hashmap in Kotlin?

Soumak De

Soumak De

Updated on 27-Oct-2021 06:22:01

3K+ Views

A Map is a collection where data is stored as a key-value pair and the corresponding key has to be unique. A HashMap is a collection class based upon MutableMap interface and it does that by implementing MutableMap interface of HashTable. Kotlin provides four types of constructor to define and ... Read More

Previous 1 ... 3 4 5 6 7
Advertisements