AWS Lambda now supports Java 11

You can now develop AWS Lambda functions using Java 11. You can use Java 11 features such as its improved HTTP Client API and new methods for reading and writing strings when authoring your functions. Lambda functions written in Java 11 run on Amazon Linux 2, the latest generation of Amazon Linux, and Amazon Corretto 11, a no-cost, production-ready distribution of OpenJDK 11 that comes with long-term support.

Source:: Amazon AWS