Questions tagged [java-21]

Java 21 is a Java language implementation set to be released on September 19, 2023 and will include virtual threads, sequenced collections, record patterns, pattern matching for switch, string templates, and unnamed classes and variables. Use this tag only for questions specific to Java 21 and its features. For generic Java programming questions, the [java] tag should be used.

2 questions
1
vote
2 answers

What @Nullable to use in Java (as of 2023/JDK21)?

As of 2023/JDK21, what @Nullable to use in Java? Many online materials, don't even mention what import should be. So it is now (dark) history in what order those annotation appeared. I hope for general answer and from a reputable source (please…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
-2
votes
1 answer

What is Java 21s new Sequence Interface

What is the new Sequence interface in Java 21? What does it add and what may be common issues to consider?
A_Arnold
  • 3,195
  • 25
  • 39