← Prompts
Reference / Understand Copilot Instructions Collection
Comprehensive best practices for adopting new Java 17 features since the release of Java 11
Comprehensive best practices for adopting new Java 17 features since the release of Java 11.
# Java 11 to Java 17 Upgrade Guide
## Project Context
This guide provides comprehensive GitHub Copilot instructions for upgrading Java projects from JDK 11 to JDK 17, covering major language features, API changes, and migration patterns based on 47 JEPs integrated between these versions.
## Language Features and API Changes
### JEP 395: Records (Java 16)
**Migration Pattern**: Convert data classes to records
```java
// Old: Traditional data class
public class Person {
private final String name;
private final int age;
public Person(String name, int age) {
this.name = name;
this.age = age;
}
public String name() { return name; }
public int age() { return age; }Sign in to view the full prompt.
Sign InTags
Classification
Reference Documentation, cheatsheets, setup guides
Reference Understand
Explain or analyzeScope Project
This codebase Manual Manually placed / Persistent