Java 18 Features
✍ Wow, 𝗝𝗮𝘃𝗮 𝟭𝟴 has some 𝗮𝘄𝗲𝘀𝗼𝗺𝗲 𝗳𝗲𝗮𝘁𝘂𝗿𝗲𝘀 🚀, listed below are the important things.🔥
✍ Simple Web Server ✅
Nowadays most modern languages have inbuilt web servers. Java 18 comes with that feature. We can start providing a web server with the jwebserver command. It starts the server on localhost:8000 and provides a file browser for the current directory.
✍ UTF-8 By Default
In Java 18, the default charset is now UTF-8. Previously, Java charset worked based on the host operating system and locale.
✍ Code Snippets
Now, we can implement and integrate multiline code snippets into Java. It helps a lot for the predefined example or getting started code.
✍ Internet-Address Resolution SPI
Helps to resolve Internet address items and can use this to resolve hostnames from IP addresses or hostnames and ports from an HTTP URI
✍ Pattern Matching for Switch
It was first introduced in Java 17. Pattern Matching for switch enables and transfers control to one of the several statements or expressions, depending on the value of its selector expression.
✍ Vector API
A vector API makes simply an array of numbers that can be manipulated as a single entity and helps to perform numeric computations, especially complex ones that involve many different values.
Note : 🔔 Some of the features are available in preview mode.
#java #java18 #features #mode