Se você utiliza o Java da Oracle confira nessa matéria como o ter no seu Ubuntu e derivados.
O anúncio foi feito em 25 de março de 2020
"A Oracle anunciou hoje a disponibilidade geral do Java 14 (Oracle JDK 14). O Java 14 continua o compromisso da Oracle de acelerar a inovação, oferecendo novos aprimoramentos às empresas e à comunidade de desenvolvedores com um novo recurso a cada seis meses. O Java Development Kit (JDK) mais recente oferece novos recursos, incluindo dois novos recursos de visualização altamente antecipados - Pattern Matching for instanceof (JEP 305) e Records (JEP 359), além de uma segunda visualização de Text Blocks (JEP 368). Além disso, a versão mais recente do Java adiciona suporte à linguagem Java para expressões de comutador, expõe novas APIs para monitoramento contínuo dos dados do JDK Flight Recorder, estende a disponibilidade do Z Garbage Collector de baixa latência para o macOS e Windows e adiciona, nos módulos da incubadora, o empacotamento de aplicativos Java independentes e uma nova API de acesso à memória estrangeira para acesso seguro e eficiente à memória fora do heap Java."
JEP 305: Pattern Matching for instanceof (Preview) – This preview feature enhances Java with pattern matching for the instanceof operator. This improves developer productivity by eliminating the need for common boiler plate code and allows more concise type-safe code.
JEP 343: Packaging Tool (Incubator) – Provides a way for developers to package Java applications for distribution in platform-specific formats. This helps developers with modern applications where constraints require runtimes and applications to be bundled in a single deliverable. This tools is introduced in an incubator module, which is a way of putting non-final APIs and non-final tools in the hands of developers to get their feedback while the APIs/tools progress towards either finalization or removal in a future release.
JEP 345: NUMA-Aware Memory Allocation for G1 – Improves overall performance of the G1 garbage collector on non-uniform memory access (NUMA) systems.
JEP 349: JFR Event Streaming – Exposes JDK Flight Recorder (JFR) data for continuous monitoring. This will simplify access to JFR data for various tools and applications and spur further innovation.
JEP 352: Non-Volatile Mapped Byte Buffers – Adds a file mapping mode for the JDK when using non-volatile memory. The persistent nature of non-volatile memory changes various persistence and performance assumptions which are leveraged with this feature.
JEP 358: Helpful NullPointerExceptions – Improves the usability of NullPointerExceptions by describing precisely which variable was null and other helpful information. This will increase developer productivity and improve the quality of many development and debugging tools.
JEP 359: Records (Preview) – This preview feature provides a compact syntax for declaring classes which hold shallowly immutable data. This feature can greatly reduce boilerplate code in classes of this type, but the biggest benefit allowing the modeling of data as data. It should be easy, clear and concise to declare these shallowly-immutable nominal data aggregates.
JEP 361: Switch Expressions (Standard) – This was a preview feature in JDK 12 and JDK 13 and is now being added as a standard feature. It allows switch to be used as either a statement or an expression. This feature simplifies every day coding and prepared the way for the pattern matching (JEP 305) feature previewed in this release.
JEP 364: ZGC on macOS and JEP 365: ZGC on Windows – While most users that require ZGC also require the scalability of Linux-based environments, there are often needs for deployment and testing to support ZGC on macOS and Windows. There are also certain desktop applications targeting Windows and macOS which will benefit from ZGC.
368: Text Blocks (Second Preview) – After receiving end-user feedback when Text Blocks was first introduced as a preview feature as part of Java 13, enhancements have been added and Text Blocks is being offered as a preview feature again in Java 14 with the goal of becoming standard in a future JDK release. Text Blocks make it easy to express strings that span several lines of source code. It enhances the readability of strings in Java programs that denote code written in non-Java languages; It supports the migration from string literals by stipulating that any new construct can express the same set of strings as a string literal, interpret the same escape sequences and be manipulated in the same ways as a string literal.
370: Foreign-Memory Access API (Incubator) – An API to allow Java programs to safely and efficiently access foreign memory outside of the Java heap.
Fonte
Para instalar o Java da Oracle você deve remover por completo o Java open, para isso de os comando abaixo no terminal.
De o comado abaixo para remover o openjdk.
Remova os resíduos.
Adicione a PPA linuxuprising/java.
Atualize a lista de pacotes.
instale o java.
Ai está o Java 14 instalado.
Oracle Java 14
O anúncio foi feito em 25 de março de 2020
"A Oracle anunciou hoje a disponibilidade geral do Java 14 (Oracle JDK 14). O Java 14 continua o compromisso da Oracle de acelerar a inovação, oferecendo novos aprimoramentos às empresas e à comunidade de desenvolvedores com um novo recurso a cada seis meses. O Java Development Kit (JDK) mais recente oferece novos recursos, incluindo dois novos recursos de visualização altamente antecipados - Pattern Matching for instanceof (JEP 305) e Records (JEP 359), além de uma segunda visualização de Text Blocks (JEP 368). Além disso, a versão mais recente do Java adiciona suporte à linguagem Java para expressões de comutador, expõe novas APIs para monitoramento contínuo dos dados do JDK Flight Recorder, estende a disponibilidade do Z Garbage Collector de baixa latência para o macOS e Windows e adiciona, nos módulos da incubadora, o empacotamento de aplicativos Java independentes e uma nova API de acesso à memória estrangeira para acesso seguro e eficiente à memória fora do heap Java."
Novos recursos entregues no Java 14
JEP 305: Pattern Matching for instanceof (Preview) – This preview feature enhances Java with pattern matching for the instanceof operator. This improves developer productivity by eliminating the need for common boiler plate code and allows more concise type-safe code.
JEP 343: Packaging Tool (Incubator) – Provides a way for developers to package Java applications for distribution in platform-specific formats. This helps developers with modern applications where constraints require runtimes and applications to be bundled in a single deliverable. This tools is introduced in an incubator module, which is a way of putting non-final APIs and non-final tools in the hands of developers to get their feedback while the APIs/tools progress towards either finalization or removal in a future release.
JEP 345: NUMA-Aware Memory Allocation for G1 – Improves overall performance of the G1 garbage collector on non-uniform memory access (NUMA) systems.
JEP 349: JFR Event Streaming – Exposes JDK Flight Recorder (JFR) data for continuous monitoring. This will simplify access to JFR data for various tools and applications and spur further innovation.
JEP 352: Non-Volatile Mapped Byte Buffers – Adds a file mapping mode for the JDK when using non-volatile memory. The persistent nature of non-volatile memory changes various persistence and performance assumptions which are leveraged with this feature.
JEP 358: Helpful NullPointerExceptions – Improves the usability of NullPointerExceptions by describing precisely which variable was null and other helpful information. This will increase developer productivity and improve the quality of many development and debugging tools.
JEP 359: Records (Preview) – This preview feature provides a compact syntax for declaring classes which hold shallowly immutable data. This feature can greatly reduce boilerplate code in classes of this type, but the biggest benefit allowing the modeling of data as data. It should be easy, clear and concise to declare these shallowly-immutable nominal data aggregates.
JEP 361: Switch Expressions (Standard) – This was a preview feature in JDK 12 and JDK 13 and is now being added as a standard feature. It allows switch to be used as either a statement or an expression. This feature simplifies every day coding and prepared the way for the pattern matching (JEP 305) feature previewed in this release.
JEP 364: ZGC on macOS and JEP 365: ZGC on Windows – While most users that require ZGC also require the scalability of Linux-based environments, there are often needs for deployment and testing to support ZGC on macOS and Windows. There are also certain desktop applications targeting Windows and macOS which will benefit from ZGC.
368: Text Blocks (Second Preview) – After receiving end-user feedback when Text Blocks was first introduced as a preview feature as part of Java 13, enhancements have been added and Text Blocks is being offered as a preview feature again in Java 14 with the goal of becoming standard in a future JDK release. Text Blocks make it easy to express strings that span several lines of source code. It enhances the readability of strings in Java programs that denote code written in non-Java languages; It supports the migration from string literals by stipulating that any new construct can express the same set of strings as a string literal, interpret the same escape sequences and be manipulated in the same ways as a string literal.
370: Foreign-Memory Access API (Incubator) – An API to allow Java programs to safely and efficiently access foreign memory outside of the Java heap.
Fonte
Instalação
Para instalar o Java da Oracle você deve remover por completo o Java open, para isso de os comando abaixo no terminal.
De o comado abaixo para remover o openjdk.
sudo apt-get remove --purge openjdk*
Remova os resíduos.
sudo apt autoremove
Adicione a PPA linuxuprising/java.
sudo add-apt-repository ppa:linuxuprising/java
Atualize a lista de pacotes.
sudo apt update
instale o java.
sudo apt install oracle-java14-installer
Ai está o Java 14 instalado.
para quem utiliza os programas da receita federal como Carne Leao e o IR, qual vc recomenda ou acredita que funciona melhor, o openJava (11.0.6 debian buster) ou o Java oracle 14 da materia acima?
ResponderExcluirMuito boa essa matéria.
O que funcionar.
Excluir