Java Feature Spotlight: Pattern Matching

Java SE 14 (March 2020) introduced a limited form of pattern matching as a preview feature, which becomes a permanent feature in Java SE 16 (March 2021). The first phase of pattern matching is limited to one kind of pattern (type patterns) and one languag… Read more

Similar

Java’s SimpleDateFormat: YYYY vs. Yyyy

This post would have been more appropriate a week ago when 2018 was coming to a close but better late than never. This is a friendly reminder that when formatting dates in Java’s SimpleDateFormat class there is a subtle difference between YYYY and yyyy. T... (more…)

Read more »

Java Enums to Be Enhanced with Sharper Type Support

Java enums will be enhanced with generics support and with the ability to add methods to individual items, new JEP shows. Both features can be delivered with one single change, reason for which they're bundled together. The change only affects the Java co...

Read more »