New Java 23 Preview feature - Flexible constructor bodies!

New Java 23 Preview feature - Flexible constructor bodies!

Java Brains

2 месяца назад

17,811 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@DineshPatel-fp6wl
@DineshPatel-fp6wl - 06.10.2024 19:29

Java past its Sell By Date

Ответить
@Tony-dp1rl
@Tony-dp1rl - 06.10.2024 05:12

async/await support? dynamic optimal hardware thread use like C# or Golang? Fixes to the terrible package manager? Faster web server? Better lightweight containers? Better native dependency injection? ... better ... some tweaks to Constructors. LOL. Who runs this show, and why do they hate Java developers so much?

Ответить
@minor12828
@minor12828 - 06.10.2024 01:35

It is super no pun intended 😅

Ответить
@DJpiya1
@DJpiya1 - 05.10.2024 23:31

It took 28 freaking years for them to realize that this must have been supported from the version 1.1 😂😂

Ответить
@pat.310
@pat.310 - 05.10.2024 22:06

I have been following you since the year when I joined and started working as a developer, 15 years ago, you are one of the finest teachers I have ever met. I should really appreciate you as you played an important role in setting up my many fundamental concepts about Java. Thank you.

Ответить
@Flw383
@Flw383 - 05.10.2024 21:24

I see no point in this feature. If you want to validate that field, then do the validation in the superclass constructor instead of the subclass.

Ответить
@roronoa_d_law1075
@roronoa_d_law1075 - 05.10.2024 21:17

What's wrong with calling super before doing validation ?

Ответить
@akaappleboy
@akaappleboy - 05.10.2024 21:12

Thank you for constantly updating us with the new booms of java ! Really appreciate it.

Ответить
@sudiptamaity1320
@sudiptamaity1320 - 05.10.2024 20:47

Nicely explained 😊

Ответить
@ShivaKumarSatakuri
@ShivaKumarSatakuri - 05.10.2024 19:34

Looks like java isn't gonna die anytime soon. And I'm very happy about it 😊

Ответить
@MAYANKKUMAR-iw5qp
@MAYANKKUMAR-iw5qp - 05.10.2024 19:18

Finally! hope it comes with stable version.

Ответить
@lts8683
@lts8683 - 05.10.2024 19:00

This is a preview not a stable feature, I don't know why the people explain preview features that could be removed on the next lts java.

Ответить