·
• Pattern matching now works with primitive types, not only reference types.
• The instanceof test can check whether a conversion is exact before binding a variable.
• switch also extends to primitive selectors such as boolean, long, float, and double.
#java #jdk26 #java26 #jep #jep530 #pathtojava27 #primitive #switch
Go further with Java certification:
Java👇
Spring👇
SpringBook👇
JavaBook👇