{"id":55558,"date":"2022-09-25T14:39:15","date_gmt":"2022-09-25T09:09:15","guid":{"rendered":"https:\/\/2thenew.online\/blog\/?p=55558"},"modified":"2022-09-30T14:51:05","modified_gmt":"2022-09-30T09:21:05","slug":"java-transformation-from-java-7-to-java-18","status":"publish","type":"post","link":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/","title":{"rendered":"Java Transformation from Java 7 to Java 18"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">A lot has changed in Java from its beginnings in 1995 until today. Java 8 was a revolutionary release that put Java back on the pedestal of the best programming languages.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We will go through most of the changes in the Java language that happened from Java 8 in 2014 until today. I will try to be as brief as possible on every feature. The intention is to have <\/span><b>a reference for all features between Java 8 and Java 18 inclusively<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h2>Java 8<\/h2>\n<p><span style=\"font-weight: 400;\">Java 8 was a massive release, and you can find a list of all features at <\/span><a href=\"https:\/\/www.oracle.com\/technetwork\/java\/javase\/8-whats-new-2157071.html\"><span style=\"font-weight: 400;\">the Oracle website<\/span><\/a><span style=\"font-weight: 400;\">. There are two main feature sets I\u2019d like to mention here:<\/span><\/p>\n<p><strong>1. Language Features: Lambdas<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Before Java 8, whenever you wanted to instantiate, for example, a new Runnable, you had to write an anonymous inner class like so:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55532 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/1.png\" alt=\"Blog image\" width=\"728\" height=\"228\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/1.png 728w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/1-300x94.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/1-624x195.png 624w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">With lambdas, the same code looks like this:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55533 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/2.png\" alt=\"Blog image\" width=\"843\" height=\"70\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/2.png 843w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/2-300x25.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/2-768x64.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/2-624x52.png 624w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You also got method references, repeating annotations, default methods for interfaces and a few other language features.<\/span><\/p>\n<p><strong>2. Collections &amp; Streams<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">In Java 8 you also got functional-style operations for collections, also known as the Stream API. A quick example:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55534 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/3-1.png\" alt=\"Blog image\" width=\"1008\" height=\"65\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/3-1.png 1008w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/3-1-300x19.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/3-1-768x50.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/3-1-624x40.png 624w\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now pre-Java 8 you basically had to write for-loops to do something with that list.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">With the Streams API, you can do the following:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55535 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/4-1.png\" alt=\"Blog image\" width=\"1025\" height=\"193\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/4-1.png 1025w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/4-1-300x56.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/4-1-768x145.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/4-1-624x117.png 624w\" sizes=\"auto, (max-width: 1025px) 100vw, 1025px\" \/><\/p>\n<h2><b>Java 9<\/b><\/h2>\n<p><b>Collections<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Collections got a couple of new helper methods to easily construct Lists, Sets, and Maps.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55536 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/5-1.png\" alt=\"Blog image\" width=\"951\" height=\"125\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/5-1.png 951w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/5-1-300x39.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/5-1-768x101.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/5-1-624x82.png 624w\" sizes=\"auto, (max-width: 951px) 100vw, 951px\" \/><\/p>\n<p><b>Streams<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Streams got a couple of additions, in the form of takeWhile,dropWhile,iterate methods.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55537 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/6-1.png\" alt=\"Blog image\" width=\"962\" height=\"94\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/6-1.png 962w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/6-1-300x29.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/6-1-768x75.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/6-1-624x61.png 624w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/p>\n<p><b>Optionals<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Optionals got the sorely missed ifPresentOrElse method.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55538 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/7.png\" alt=\"Blog image\" width=\"878\" height=\"68\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/7.png 878w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/7-300x23.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/7-768x59.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/7-624x48.png 624w\" sizes=\"auto, (max-width: 878px) 100vw, 878px\" \/><\/p>\n<p><b>Interfaces<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Interfaces got private methods:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55539 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/8.png\" alt=\"Blog image\" width=\"898\" height=\"226\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/8.png 898w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/8-300x76.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/8-768x193.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/8-624x157.png 624w\" sizes=\"auto, (max-width: 898px) 100vw, 898px\" \/><\/p>\n<h2><b>Java 10<\/b><\/h2>\n<p><b>Local-Variable Type Inference: var-keyword<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55540 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/9.png\" alt=\"Blog image\" width=\"965\" height=\"257\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/9.png 965w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/9-300x80.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/9-768x205.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/9-624x166.png 624w\" sizes=\"auto, (max-width: 965px) 100vw, 965px\" \/><\/p>\n<p><b>P.S. <\/b><span style=\"font-weight: 400;\">It is still strongly typed, and only applies to variables inside methods.<\/span><\/p>\n<h2><b>Java 11<\/b><\/h2>\n<p><b>New String Methods<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Adds a few new methods to the String class: isBlank, lines, strip, stripLeading, stripTrailing, and repeat.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55541 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/10.png\" alt=\"Blog image\" width=\"944\" height=\"134\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/10.png 944w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/10-300x43.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/10-768x109.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/10-624x89.png 624w\" sizes=\"auto, (max-width: 944px) 100vw, 944px\" \/><\/p>\n<p><b>New File Methods<\/b><\/p>\n<p><span style=\"font-weight: 400;\">it&#8217;s now easier to read and write Strings from files<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55542 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/11.png\" alt=\"Blog image\" width=\"1027\" height=\"90\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/11.png 1027w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/11-300x26.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/11-1024x90.png 1024w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/11-768x67.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/11-624x55.png 624w\" sizes=\"auto, (max-width: 1027px) 100vw, 1027px\" \/><\/p>\n<h2><b>Java 12<\/b><\/h2>\n<p><b>Switch Expressions<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Firstly, let&#8217;s look and at the old syntax:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55543 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/12.png\" alt=\"Blog image\" width=\"602\" height=\"352\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/12.png 602w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/12-300x175.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">And now, let&#8217;s see the same logic with switch expressions:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55544 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/13.png\" alt=\"Blog image\" width=\"807\" height=\"109\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/13.png 807w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/13-300x41.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/13-768x104.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/13-624x84.png 624w\" sizes=\"auto, (max-width: 807px) 100vw, 807px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">It&#8217;s also possible to execute code in switch expressions without returning any value:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55545 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/14.png\" alt=\"Blog image\" width=\"1030\" height=\"114\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/14.png 1030w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/14-300x33.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/14-1024x113.png 1024w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/14-768x85.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/14-624x69.png 624w\" sizes=\"auto, (max-width: 1030px) 100vw, 1030px\" \/><\/p>\n<h2><b>Java 13<\/b><\/h2>\n<p><b>Multiline Strings<\/b><\/p>\n<p><span style=\"font-weight: 400;\">We can finally do this in Java:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55546 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/15.png\" alt=\"Blog image\" width=\"898\" height=\"451\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/15.png 898w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/15-300x151.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/15-768x386.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/15-624x313.png 624w\" sizes=\"auto, (max-width: 898px) 100vw, 898px\" \/><\/p>\n<h2><b>Java 14<\/b><\/h2>\n<p><b>Switch Expressions<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55547 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/16.png\" alt=\"Blog image\" width=\"641\" height=\"319\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/16.png 641w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/16-300x149.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/16-624x311.png 624w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/p>\n<p><b>Records<\/b><\/p>\n<p><span style=\"font-weight: 400;\">There are now record classes, which help alleviate the pain of writing a lot of boilerplate with Java. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Have a look at this pre Java 14 class, which only contains data, (potentially) getters\/setters, equals\/hashcode, toString.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55548 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/17.png\" alt=\"Blog image\" width=\"817\" height=\"382\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/17.png 817w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/17-300x140.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/17-768x359.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/17-624x292.png 624w\" sizes=\"auto, (max-width: 817px) 100vw, 817px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">With records, it can now be written like this:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55549 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/18.png\" alt=\"Blog image\" width=\"830\" height=\"68\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/18.png 830w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/18-300x25.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/18-768x63.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/18-624x51.png 624w\" sizes=\"auto, (max-width: 830px) 100vw, 830px\" \/><\/p>\n<p><b>P.S.<\/b><span style=\"font-weight: 400;\"> this is a preview feature and subject to change in future releases.<\/span><\/p>\n<p><b>Helpful NullPointerExceptions<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Finally NullPointerExceptions describe exactly which variable was null.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55550 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/19.png\" alt=\"Blog image\" width=\"805\" height=\"161\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/19.png 805w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/19-300x60.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/19-768x154.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/19-624x125.png 624w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/p>\n<p><b>Pattern Matching For InstanceOf\u00a0<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Previously we had to (cast) our objects inside an instanceof like this<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55551 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/20.png\" alt=\"Blog image\" width=\"450\" height=\"146\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/20.png 450w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/20-300x97.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">We can now do this, effectively dropping the cast.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55552 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/21.png\" alt=\"Blog image\" width=\"757\" height=\"130\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/21.png 757w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/21-300x52.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/21-624x107.png 624w\" sizes=\"auto, (max-width: 757px) 100vw, 757px\" \/><\/p>\n<p><b>Garbage Collectors<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The Concurrent Mark Sweep (CMS) Garbage Collector has been removed, and the experimental Z Garbage Collector has been added.<\/span><\/p>\n<h2><b>Java 15<\/b><\/h2>\n<p><b>Text-Blocks \/ Multiline Strings<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55553 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/22.png\" alt=\"Blog image\" width=\"935\" height=\"198\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/22.png 935w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/22-300x64.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/22-768x163.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/22-624x132.png 624w\" sizes=\"auto, (max-width: 935px) 100vw, 935px\" \/><\/p>\n<p><b>Sealed Classes<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55554 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/23.png\" alt=\"Blog image\" width=\"843\" height=\"100\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/23.png 843w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/23-300x36.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/23-768x91.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/23-624x74.png 624w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">This means that while the class is public, the only classes allowed to subclass Shape are Circle, Rectangle and Square.<\/span><\/p>\n<h2><b>Java 16<\/b><\/h2>\n<p><strong>Vector API Incubator<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">The idea of this API is to provide a means of vector computations that will ultimately be able to perform more optimally (on supporting CPU architectures) than the traditional scalar method of computations.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let&#8217;s look at how we multiply two arrays using vector:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55555 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/24.png\" alt=\"Blog image\" width=\"772\" height=\"191\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/24.png 772w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/24-300x74.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/24-768x190.png 768w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/24-624x154.png 624w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/p>\n<h2><b>Java 17<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Java 17 is the new long-term support (LTS) release of Java, after Java 11.<\/span><\/p>\n<p><b>Passing Objects as switch functions and check for a particular type.<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55556 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/26.png\" alt=\"Blog image\" width=\"745\" height=\"503\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/26.png 745w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/26-300x203.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/26-624x421.png 624w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/p>\n<h2><b>Java 18<\/b><\/h2>\n<p><b>@snippet Tag<\/b><\/p>\n<p><span style=\"font-weight: 400;\">@snippet tag, specifically designed to display source code. With the @snippet tag, we can write the comment as follows:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-55557 size-full\" src=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/27.png\" alt=\"Blog image\" width=\"769\" height=\"287\" srcset=\"https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/27.png 769w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/27-300x112.png 300w, https:\/\/2thenew.online\/blog\/wp-ttn-blog\/uploads\/2022\/09\/27-624x233.png 624w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/p>\n<p><b>Pattern Matching Improvements:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Pattern matching simplifies the implementation of the common pattern of matching an object against a pattern. For example, you may want to check if a given object is an instance of a particular type and then access it in a type-safe manner. This feature improves readability and increases code safety. Pattern matching can be used in switch statements.<\/span><\/p>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>A lot has changed in Java from its beginnings in 1995 until today. Java 8 was a revolutionary release that put Java back on the pedestal of the best programming languages. We will go through most of the changes in the Java language that happened from Java 8 in 2014 until today. I will try [&hellip;]<\/p>\n","protected":false},"author":1488,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":28,"footnotes":""},"categories":[446],"tags":[5025],"class_list":["post-55558","post","type-post","status-publish","format-standard","hentry","category-java","tag-java-java8-historyofjava"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"A lot has changed in Java from its beginnings in 1995 until today. Java 8 was a revolutionary release that put Java back on the pedestal of the best programming languages. We will go through most of the changes in the Java language that happened from Java 8 in 2014 until today. I will try\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Ankit Sagar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Java Transformation from Java 7 to Java 18 | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"A lot has changed in Java from its beginnings in 1995 until today. Java 8 was a revolutionary release that put Java back on the pedestal of the best programming languages. We will go through most of the changes in the Java language that happened from Java 8 in 2014 until today. I will try\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Java Transformation from Java 7 to Java 18 | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"A lot has changed in Java from its beginnings in 1995 until today. Java 8 was a revolutionary release that put Java back on the pedestal of the best programming languages. We will go through most of the changes in the Java language that happened from Java 8 in 2014 until today. I will try\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-transformation-from-java-7-to-java-18\\\/#article\",\"name\":\"Java Transformation from Java 7 to Java 18 | TO THE NEW Blog\",\"headline\":\"Java Transformation from Java 7 to Java 18\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit-sagar\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2022\\\/09\\\/1.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-transformation-from-java-7-to-java-18\\\/#articleImage\"},\"datePublished\":\"2022-09-25T14:39:15+05:30\",\"dateModified\":\"2022-09-30T14:51:05+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-transformation-from-java-7-to-java-18\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-transformation-from-java-7-to-java-18\\\/#webpage\"},\"articleSection\":\"Java\\\/JVM, java java8 historyOfJava\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-transformation-from-java-7-to-java-18\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/java\\\/#listItem\",\"name\":\"Java\\\/JVM\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/java\\\/#listItem\",\"position\":2,\"name\":\"Java\\\/JVM\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/java\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-transformation-from-java-7-to-java-18\\\/#listItem\",\"name\":\"Java Transformation from Java 7 to Java 18\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-transformation-from-java-7-to-java-18\\\/#listItem\",\"position\":3,\"name\":\"Java Transformation from Java 7 to Java 18\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/java\\\/#listItem\",\"name\":\"Java\\\/JVM\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit-sagar\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit-sagar\\\/\",\"name\":\"Ankit Sagar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-transformation-from-java-7-to-java-18\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/adcff43b-7b90-48dd-b62d-6134dfe8a9e6_3012-Ankit-Sagar-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Ankit Sagar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-transformation-from-java-7-to-java-18\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-transformation-from-java-7-to-java-18\\\/\",\"name\":\"Java Transformation from Java 7 to Java 18 | TO THE NEW Blog\",\"description\":\"A lot has changed in Java from its beginnings in 1995 until today. Java 8 was a revolutionary release that put Java back on the pedestal of the best programming languages. We will go through most of the changes in the Java language that happened from Java 8 in 2014 until today. I will try\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-transformation-from-java-7-to-java-18\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit-sagar\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit-sagar\\\/#author\"},\"datePublished\":\"2022-09-25T14:39:15+05:30\",\"dateModified\":\"2022-09-30T14:51:05+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Java Transformation from Java 7 to Java 18 | TO THE NEW Blog","description":"A lot has changed in Java from its beginnings in 1995 until today. Java 8 was a revolutionary release that put Java back on the pedestal of the best programming languages. We will go through most of the changes in the Java language that happened from Java 8 in 2014 until today. I will try","canonical_url":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/#article","name":"Java Transformation from Java 7 to Java 18 | TO THE NEW Blog","headline":"Java Transformation from Java 7 to Java 18","author":{"@id":"https:\/\/2thenew.online\/blog\/author\/ankit-sagar\/#author"},"publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2022\/09\/1.png","@id":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/#articleImage"},"datePublished":"2022-09-25T14:39:15+05:30","dateModified":"2022-09-30T14:51:05+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/#webpage"},"articleSection":"Java\/JVM, java java8 historyOfJava"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.online\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/java\/#listItem","name":"Java\/JVM"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/java\/#listItem","position":2,"name":"Java\/JVM","item":"https:\/\/2thenew.online\/blog\/category\/java\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/#listItem","name":"Java Transformation from Java 7 to Java 18"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/#listItem","position":3,"name":"Java Transformation from Java 7 to Java 18","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/java\/#listItem","name":"Java\/JVM"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.online\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.online\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.online\/blog\/author\/ankit-sagar\/#author","url":"https:\/\/2thenew.online\/blog\/author\/ankit-sagar\/","name":"Ankit Sagar","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/adcff43b-7b90-48dd-b62d-6134dfe8a9e6_3012-Ankit-Sagar-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Ankit Sagar"}},{"@type":"WebPage","@id":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/#webpage","url":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/","name":"Java Transformation from Java 7 to Java 18 | TO THE NEW Blog","description":"A lot has changed in Java from its beginnings in 1995 until today. Java 8 was a revolutionary release that put Java back on the pedestal of the best programming languages. We will go through most of the changes in the Java language that happened from Java 8 in 2014 until today. I will try","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.online\/blog\/author\/ankit-sagar\/#author"},"creator":{"@id":"https:\/\/2thenew.online\/blog\/author\/ankit-sagar\/#author"},"datePublished":"2022-09-25T14:39:15+05:30","dateModified":"2022-09-30T14:51:05+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.online\/blog\/#website","url":"https:\/\/2thenew.online\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Java Transformation from Java 7 to Java 18 | TO THE NEW Blog","og:description":"A lot has changed in Java from its beginnings in 1995 until today. Java 8 was a revolutionary release that put Java back on the pedestal of the best programming languages. We will go through most of the changes in the Java language that happened from Java 8 in 2014 until today. I will try","og:url":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/","og:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Java Transformation from Java 7 to Java 18 | TO THE NEW Blog","twitter:description":"A lot has changed in Java from its beginnings in 1995 until today. Java 8 was a revolutionary release that put Java back on the pedestal of the best programming languages. We will go through most of the changes in the Java language that happened from Java 8 in 2014 until today. I will try","twitter:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"55558","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"#aioseo-article-65e064b62c167","slug":"article","graphName":"Article","label":"Article","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2022-09-30 09:09:15","updated":"2024-02-29 11:04:22","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\/category\/java\/\" title=\"Java\/JVM\">Java\/JVM<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tJava Transformation from Java 7 to Java 18\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.online\/blog"},{"label":"Java\/JVM","link":"https:\/\/2thenew.online\/blog\/category\/java\/"},{"label":"Java Transformation from Java 7 to Java 18","link":"https:\/\/2thenew.online\/blog\/java-transformation-from-java-7-to-java-18\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/55558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/users\/1488"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/comments?post=55558"}],"version-history":[{"count":2,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/55558\/revisions"}],"predecessor-version":[{"id":55634,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/55558\/revisions\/55634"}],"wp:attachment":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/media?parent=55558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/categories?post=55558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/tags?post=55558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}