Kotlin doesn't have a static keyword like Java does. Kotlin idioms rely on concepts such as top-level functions and properties, extension functions, and compile-time constants to achieve the same functionality without the need for an explicit static keyword. If you're working strictly within a Kotlin code base, this doesn't pose much of a problem, but if you're working across both Java and Kotlin, there may be times when you want to expose properties or methods as static so they can be used more naturally from Java. In this section, we'll learn how to expose Kotlin elements as true JVM static elements so they can be used more naturally from Java.
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia