251
5
252
5
253
10
254
33
255
6
256
4
257
9
258
3
259
2
260
10
261
37
262
7
263
29
Breaking java.lang.String (wouter.coekaerts.be)
264
6
What is blocking in Loom? (softwaremill.com)
265
1
submitted 3 years ago by aev@lemmy.sdf.org to c/java@programming.dev

Chances are you forgot to kick it.

The linked article is written by me. It explains how Java streams need a terminating operation in order to start any actions. For more explanations and code examples, do follow the link and read the article. It's free.

266
4
267
7
submitted 3 years ago by kmo@feddit.de to c/java@programming.dev

Hi everyone,

I'm trying to find out how much people use the "new" features available in java. I would be very thankful, if anyone could participate. (less than one minute required)

In my former projects we neither had the latest java version, nor did we use all the features available. Sometimes i had the feeling, that some of my collegues didn't even know that these features exist. How's your experience?

https://forms.office.com/r/udsj1aUawV

268
3
submitted 3 years ago* (last edited 3 years ago) by kmo@feddit.de to c/java@programming.dev

Hi everyone,

I'm trying to find out how much people use the "new" features available in java. I would be very thankful, if anyone could participate. (less than one minute required)

https://forms.office.com/r/udsj1aUawV

269
8
submitted 3 years ago* (last edited 3 years ago) by JackbyDev@programming.dev to c/java@programming.dev

Everyone is posting about beans!

270
9
271
5
272
8

Which do you prefer of these two? The goal is the same. If bar is null then make foo null and avoid the exception. In other languages there is the ?. operator to help with this.

foo = bar == null ? null : bar.baz();
foo = bar != null ? bar.baz() : null;

I ask because I feel like the "English" of the first example is easier to read and has less negations so it is more straightforward, but the second one has the meat of the expression (bar.baz()) more prominently.

273
5
submitted 3 years ago by pohart@lemmyrs.org to c/java@programming.dev

I've been paying attention to the JEPs, but this includes the general API changes that there aren't jeps for.

274
8
submitted 3 years ago by pohart@lemmyrs.org to c/java@programming.dev

virtual threads, sequenced collections, generational ZGC, pattern matching, structured concurrency preview , vector preview, string templates preview

275
2
Duke, the Java mascot (www.oracle.com)
view more: ‹ prev next ›

Java

2038 readers
1 users here now

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

founded 3 years ago
MODERATORS