38
you are viewing a single comment's thread
view the rest of the comments
[-] Aatube@kbin.melroy.org 5 points 7 months ago* (last edited 7 months ago)

Other features that were previewed in the Java Development Kit 22 release could also make it quite easily into the Java Development Kit 23 release. These include statements before super(…), which would give developers greater freedom in expressing constructor behavior – meaning string templates. This would make it easy to express strings that include values computed at run time – meaning scoped values. This would enable sharing of immutable data within and across threads; and implicitly declared classes and instance main methods.

[proceeds to show a seemingly normal piece of code]

is this ai generated or do i have secree-slexia?

[-] Solemarc@lemmy.world 2 points 7 months ago

From the way I'm reading it, it sounds like a super() call in a constructor must be the first thing you do or something you don't do? I never knew that was a thing... Looking at my old java code, I haven't written Java since I graduated, this does seem to line up?

[-] Aatube@kbin.melroy.org 1 points 7 months ago

Oh yeah, I remember now. That's definitely it.

this post was submitted on 16 Apr 2024
38 points (91.3% liked)

Programming

17314 readers
212 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS