Giter VIP home page Giter VIP logo

java11-examples's Introduction

Java 11 Examples

This project provides a set of Java code examples illustrating the subset of new language features and APIs that were introduced in Java 11 that are of interest to developers

The examples are implemented as a set of easy to run tests, using JUnit (5).

For a broader look at the new features in JDK 11 that are of most interest to developers see my blog post Java 11 – New Features, Code Examples & Support.

The source code for the examples can be found in the src/test/java folder.

An explanation of the showcased language features, along with guidance on their usage, can be found in the Javadoc of each of the code examples. (See the commands for generating Javadoc below).

You will need to install a Java 11 JDK.

Support is provided for building and running the project using either Gradle or Maven as described in the sections below.

The minimum required version of Gradle will be installed if you execute the build using the supplied Gradle wrapper script (./gradlew).

To compile and run all the example tests, enter the following command in the project’s root folder:

./gradlew clean test

To generate the Javadoc, use the following command:

./gradlew clean javadocTests

The generated Javadoc can be found in the standard location for a Gradle project - build/docs/javadoc/index.html.

For more details of Gradle build support see build.gradle in the project’s root folder.

The minimum required version of Maven will be installed if you execute the build using the supplied Maven wrapper script (./mvnw).

To compile and run all the example tests, enter the following command in the project’s root folder:

./mvnw clean test

To generate the Javadoc, use the following command:

./mvnw javadoc:test-javadoc

The generated Javadoc can be found in the standard location for a Maven project - target/site/testapidocs/index.html.

For more details of Maven build support see pom.xml in the project’s root folder.

You can find similar code examples for the new features introduced in earlier versions in Java in my other code repos, including -

java11-examples's People

Contributors

yadavallimallikharjua 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.