GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing stackify.com — Java 12: New Features and Enhancements Developers Should Know - Stackify
Retrace will reach End of Life on March 31, 2027. Click here to learn more.
Java 12: New Features and Enhancements Developers Should Know
By: Alexandra | March 12, 2019
Oracle will soon roll out Java 12 in March 2019 and new releases will drop once every six months thereafter. The goal is to make new releases more frequent for the Java ecosystem, with certain releases earmarked as long-term support (LTS). And by support, we mean the allocation of update releases for bug fixes and critical security patches. This latest version offers a list of new features such as Switch Expressions, Default CDS Archives, Shenandoah, Microbenchmark Suite, among others. Some of the great benefits you can expect from the new Java 12 features are:
What to expect with the Java 12 releaseEven with the prevalence of other programming languages, Java has sustained its widespread popularity since it was introduced 23 years ago. One of the compelling reasons why it’s so popular is its platform-independent nature. This means that a Java program can work on any operating system or computer. Many of the largest web development applications and systems around the world are developed using this language. Amazon, Google, Android, Experian, Atlassian, Twitter, eBay, and Netflix are just a few of the popular companies that use Java. With the six-month release schedule for Java, the dev community can expect new and better features for developers at an accelerated rate. JDK 12 release schedule
The latest version of Java Platform Standard Edition (Java SE) is JDK 12 as described by JSR 386 (Java Specification Request) in the Java Community Process. Currently, JDK 12 is in the Release-Candidate Phase stage. It includes eight features, with some additions introduced since Phase One. The general feature set is frozen. However, the stabilization repository, jdk/jdk12 is clear for P1-P2 bug fixes; and with approval, the late enhancement requests stated in the JDK Release Process (JEP 3). Here’s a complete rundown on the list of features you can expect from Java 12. Java 12 features
Switch expressions (JEP 325)With Java 12, the beta switch expressions will improve coding by extending the switch statement, enabling its use as either a statement or an expression. It will let both forms use either the traditional or simplified scoping and control flow behavior. This will help simplify the code and also pave the way for the use of pattern matching in a switch. Java developers are enhancing the Java programming language to use pattern matching to resolve several issues with the current switch statement. This includes: default control flow behavior of switch blocks, default scoping switch block (a block considered as a single scope) and switch working only as a statement. In Java 11, the switch statement tracks C and C++ programming languages, and by default, uses the fall-through semantics. While the traditional control flow is beneficial when writing low-level codes, the error-prone nature will soon outweigh its flexibility as the switch is adopted in higher-level contexts. Java 11 int numberOfLetters; Java 12 int numberOfLetters = switch (fruit) {
As you can see, switch expressions bring clearer, cleaner, and safer code. Default CDS archives (JEP 341)The end goal is to improve the JDK build process by generating a class data-sharing (CDS) archive with the help of the default class list on the 64-bit platform, effectively removing the need to run <code>java -Xshare:dump</code>. Among the goals for this feature are: 1.) Improve out-of-the-box startup time, and 2.) Get rid of the need to run -Xshare: dump to benefit from the CDS. Shenandoah: A low-pause-time garbage collector (JEP 189)Shenandoah is a garbage collection (GC) algorithm that aims to guarantee low response times (the lower end of 10 – 500 ms). It reduces the GC pause times by doing evacuation work simultaneously with the running Java threads. With Shenandoah, pause times are not dependent on the heap’s size. This means that pause times will be consistent no matter the size of your heap. A 10 MB or 10 GB heap should have the same pause time. This is an experimental feature and is not included in the default (Oracle’s) OpenJDK build. Microbenchmark suite (JEP 230)This feature adds a suite of microbenchmarks (approximately 100) to the JDK source code and simplifies both the running of existing microbenchmarks and the creation of new ones. It is based on the Java Microbenchmark Harness (JMH) and supports JMH updates. This feature makes it simple for developers to run current microbenchmarks and add new ones to the JDK source code. This will easily test the JDK performance based on the Java Microbenchmark Harness (JMH). It will support JMH updates and include an initial set of approximately 100 benchmarks in the suite. JVM constants API (JEP 334)JEP 334 introduces an API modeling the key class-file and run-time artifacts, such as the constant pool. This API will include classes such as ClassDesc, MethodTypeDesc, MethodHandleDesc, and DynamicConstantDesc. This API can be helpful for tools that manipulate classes and methods. One AArch64 port, not two (JEP 340)Instead of two ports, Java 12 will only have one port for the ARM 64-bit processors (aarch64). The objective is to delete all arm64 port-related sources, while keeping the 32-bit ARM port and 64-bit aarch64 port. This will shift the focus to a single 64-bit ARM implementation and eliminate duplicate work needed to maintain two ports. There are two 64-bit ARM ports in the current JDK 11 implementation. Abortable mixed collections for G1 (JEP 344)This feature makes the G1 (Garbage First) garbage collector abort the garbage collection process more efficiently by splitting the mixed collection set into mandatory and optional parts. By allowing the garbage collection process to prioritize the mandatory set, G1 can meet the pause time goal more often. G1 is a garbage collector designed for multi-processor machines with large amounts of memory. Due to its increased performance efficiency, the G1 garbage collector will eventually replace the CMS (Concurrent Mark Sweep) garbage collector. You can read more about garbage collectors here. One of the main goals of G1 Garbage Collector is to meet a user-supplied pause time target for the collection pauses. The G1 adopts an analysis engine that selects the amount of workload to process during a collection. The outcome of this selection process is a set of regions known as collection set. As soon as the collection set is established and the collection has started, then G1 will collect all live objects in collection set’s regions without stopping. If G1 finds out that the collection set selection selects the wrong number of regions repeatedly, it will switch to an incremental way of processing mixed collections set by splitting the collection of to-be garbage collected regions into 2 parts – mandatory and optional parts. Then cease the garbage collection of the optional part, if the pause time target is not reached. Promptly return unused committed memory from G1 (JEP 346)The main goal for this feature is to improve the G1 garbage collector to immediately return Java heap memory to the operating system when inactive. To achieve this goal, G1 will–during low application activity–periodically generate or continue a concurrent cycle to check the complete Java heap usage. This will trigger it to immediately return unused Java heap portions to the operating system. When under user control, there’s an option to perform a full GC to maximize the volume of memory returned. Raw string literals (JEP 326) removed from JDK 12Raw string literals was proposed as a preview feature of Java 12, but was later dropped. Its future release is currently postponed and it is being revised. Here’s a quote from Brian Goetz, Oracle’s Java Language Architect, on December 11, 2018:
JDK 12 early access builds – Try it here!The JDK 12 early access build is now available here – http://jdk.java.net/12/ from Oracle for Linux, MacOS, and Windows. This early access, open source builds are under the GNU General License, version 2 with Classpath Exception. This open-source build was created to generate feedback. However, not all functionalities will make it to the general availability release on March 19, 2019. SummaryIt’s no secret that Java has made our online lives more convenient. It’s never been easier to write code in Java and develop programs that are secure and reliable. Thank you to Full Scale for writing this guest post. If you’re in the market for hiring a Java developer, Full Scale offers Java Development services on full time or on a project basis. They specialize in augmenting your existing development team to scale up your team with additional remote developers. Be sure to check out their excellent blog post about tips for managing remote development teams. Also be sure to check out Retrace, Stackify’s APM solution to boosting application performance and quality at every stage of development. Some of the best features of Retrace are: app performance monitoring, code profiling, error tracking, centralized logging, and app & server metrics. Get started today. ![]() References:
Related posts:Improve Your Code with Retrace APMStackify's APM tools are used by thousands of .NET, Java, PHP, Node.js, Python, & Ruby developers all over the world. Get the latest news, tips, and guides on software development.Join the community of 40,000 developers that subscribe to our newsletter. Popular Posts
indobet
toto slot
toto
toto
bobatoto daftar
logototo
patentoto
situs toto slot 4D
toto
bayitoto
popotogel prize hongkong malam ini
joker11
lingkartoto
depo 5k
slot
sbobet88
sbobet88
https://nolimithoki.dev/
dinasti33 slot
slot jepang
https://www.juara288.asia/
slot 4d
toto
toto
situs toto
flokitoto
slot gacor
logototo
slot depo 5k
bobatoto
bobatoto
bobatoto
sontogel
mpo slot
situs toto
slot
situs slot
bobatoto
kari4d
kari4d
kari4d
kari4d
pascol4d
pascol4d
pascol4d
slot gacor
bento11 link
slot gacor
toto
toto slot
toto
situs slot
situs slot
situs slot
https://www.asupan188.dev/
slot gacor gampang menang
toto
slot gacor
bwo303
situs toto
toto slot
slot gacor
slot88
slot gacor
situs slot
link slot
slot gacor
pucuk4d
PASCOL4D
situs slot
link slot
slotvip
situs toto
toto slot
situs slot
situs slot
situs slot
toto
slot gacor
slot777
situs slot
link slot
situs judi bola
POPOTOGEL : Situs Resmi Bandar Toto Togel Macau dengan Prediksi Gokil Pasti Akurat
link slot
slot gacor
situs slot
slot gacor
slot gacor
situs slot
link slot
gacor
Slot88
Slot88
slot gacor
situs toto
toto
slot pulsa
slot777
link slot gacor
situs gacor
slot gacor
leon188
slot gacor
slot gacor
slot gacor
Slot88
slot gacor
situs slot
slot gacor
Slot88
slot gacor
slot terbaru
slot gacor
situs gacor
situs slot
slot gacor
situs slot
Situs Slot
POPOTOGEL: Regulasi Bandar Situs Togel Resmi & Bola Mix Parlay Asia Terpercaya
StreamEast
Jpmania
slot resmi
slot
slot resmi
slot
bayitoto
patentoto
link gacor
slot gacor
kari4d
slot gacor
AMANAHTOTO
slot gacor
slot gacor
AMANAHTOTO
pascol4d
kari4d
AMANAHTOTO
kari4d
bragatoto
dokter88
slot gacor
slot game
patentoto
pucuk4d
rokokbet
rokokbet
kari4d
pascol4d
LOGIN PASCOL4D
pucuk4d
roma77
judi bola
slot depo 10k
mpo slot
Girang4d
KARI4D
StreamEast
AMANAHTOTO
jutatoto
PARLAY
slot88
slot depo 5k
hoki99
pascol4d
pkv games
roma77
Slot
poker
slot
indobet
toto slot
toto
toto
bobatoto daftar
logototo
patentoto
situs toto slot 4D
toto
bayitoto
popotogel prize hongkong malam ini
joker11
lingkartoto
depo 5k
slot
sbobet88
sbobet88
https://nolimithoki.dev/
dinasti33 slot
slot jepang
https://www.juara288.asia/
slot 4d
toto
toto
situs toto
flokitoto
slot gacor
logototo
slot depo 5k
bobatoto
bobatoto
bobatoto
sontogel
mpo slot
situs toto
slot
situs slot
bobatoto
kari4d
kari4d
kari4d
kari4d
pascol4d
pascol4d
pascol4d
slot gacor
bento11 link
slot gacor
toto
toto slot
toto
situs slot
situs slot
situs slot
https://www.asupan188.dev/
slot gacor gampang menang
toto
slot gacor
bwo303
situs toto
toto slot
slot gacor
slot88
slot gacor
situs slot
link slot
slot gacor
pucuk4d
PASCOL4D
situs slot
link slot
slotvip
situs toto
toto slot
situs slot
situs slot
situs slot
toto
slot gacor
slot777
situs slot
link slot
situs judi bola
POPOTOGEL : Situs Resmi Bandar Toto Togel Macau dengan Prediksi Gokil Pasti Akurat
link slot
slot gacor
situs slot
slot gacor
slot gacor
situs slot
link slot
gacor
Slot88
Slot88
slot gacor
situs toto
toto
slot pulsa
slot777
link slot gacor
situs gacor
slot gacor
leon188
slot gacor
slot gacor
slot gacor
Slot88
slot gacor
situs slot
slot gacor
Slot88
slot gacor
slot terbaru
slot gacor
situs gacor
situs slot
slot gacor
situs slot
Situs Slot
POPOTOGEL: Regulasi Bandar Situs Togel Resmi & Bola Mix Parlay Asia Terpercaya
StreamEast
Jpmania
slot resmi
slot
slot resmi
slot
bayitoto
patentoto
link gacor
slot gacor
kari4d
slot gacor
AMANAHTOTO
slot gacor
slot gacor
AMANAHTOTO
pascol4d
kari4d
AMANAHTOTO
kari4d
bragatoto
dokter88
slot gacor
slot game
patentoto
pucuk4d
rokokbet
rokokbet
kari4d
pascol4d
LOGIN PASCOL4D
pucuk4d
roma77
judi bola
slot depo 10k
mpo slot
Girang4d
KARI4D
StreamEast
AMANAHTOTO
jutatoto
PARLAY
slot88
slot depo 5k
hoki99
pascol4d
pkv games
roma77
Slot
poker
slot
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |