Giter Site home page Giter Site logo

demo-java-x's Introduction

Java After Eight Feature Demo

Demonstrates the features of Java 9, 10, and 11. The links below take you to the demos in this project, the JEPs responsible for introducing the feature, and to other sources if available.

These articles discuss the recent Java versions and list a lot of the new features:

Java 11:

Java 9:

You can read more from me on codefx.org, watch me blab on my YouTube channel, or follow me on Twitter.

Setup

This project requires at least the most recent Java release, at times even early-access builds of upcoming versions. You can get OpenJDK builds for both from jdk.java.net.

Most of the project can be built with Maven. It uses toolchains to configure which Java version Maven should use for compilation and packaging. Create/modify toolchains.xml in Maven's user folder (~/.m2 on Linux) to contain a block like the following:

<!-- if the file already contains a <toolchains> tag,
     you only need the inner <toolchain> block -->
<toolchains>
	<toolchain>
		<type>jdk</type>
		<provides>
			<version>12</version>
			<vendor>OpenJDK</vendor>
		</provides>
		<configuration>
			<jdkHome>/opt/jdk-12</jdkHome>
		</configuration>
	</toolchain>
</toolchains>

If your IDE doesn't like new syntax or APIs, you can always compile and run by hand - see compile.sh, run.sh (which expects the fully qualified name of the main class as argument) and compile-run.sh (conveniently combines the two - aso needs the main class). The scripts are written for Linux but should look similar on other operating systems. If the approprate Java verson is not on your path, configure it in executables.sh.

For some features, you have to run the .sh scripts in the root directory. If that's necessary, the feature list below mentions it.

Java Platform Module System

The module system is too big to demo here. Check out the jpms tag on my blog, this demo project, or my book on the module system.

Language Changes

New APIs

Updated APIs

Some of the small changes have their own articles (in which case they are linked), but many don't. Most are show-cased in these posts, though:

JVM & Tooling

Internals

demo-java-x's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.