tchncs
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
AgreeableLandscape@lemmy.mlM to Kotlin@lemmy.ml · 5 years ago

From Java to Kotlin: life without static - Notes of a Bearded Dev

jelmini.dev

external-link
message-square
0
link
fedilink
1
external-link

From Java to Kotlin: life without static - Notes of a Bearded Dev

jelmini.dev

AgreeableLandscape@lemmy.mlM to Kotlin@lemmy.ml · 5 years ago
message-square
0
link
fedilink
From Java to Kotlin: life without static
jelmini.dev
external-link
TL; DR Java developers new to Kotlin are often confused by the lack of static members. Which options Kotlin provides in order to replace the static keyword? Let's summarize for easy reference: Java static… Replace with… void main() Top-level function Constants Top-level constants Methods in utility class Top-level functions Factory methods Companion object functions Private methods Private companion object functions or private top-level functions in same file Singleton accessors Object instance Continue reading for the details.
alert-triangle
You must log in or # to comment.

Kotlin@lemmy.ml

kotlin@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !kotlin@lemmy.ml

This is a community dedicated to the Kotlin programming language.

Useful links:

  • Kotlin Website

  • Kotlin GitHub Repository

  • Kotlin Documentation PDF

Rules:

  • Posts must be relevant to Kotlin
  • No NSFW content
  • No hate speech, bigotry, etc
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 8 users / week
  • 8 users / month
  • 8 users / 6 months
  • 1 local subscriber
  • 307 subscribers
  • 33 Posts
  • 0 Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.12
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org