JavaOne 2026

JavaOne 2026 Session

Duke in front of a whiteboard

How To Write Great Java Apps With LLMs and Agents

Summary

Thanks to its open ecosystem of specifications, source code, JSRs, JEPs, mailing lists, MicroProfile, and Jakarta EE, Java was the perfect training ground for LLMs. These models learned not only syntax, but Java's patterns, idioms and design philosophy.

Through live coding, we'll show how to leverage this knowledge using short prompts and rapid iterations. We'll cover:

  • Engineering prompts that adhere to Java conventions and best practices
  • Using agents for autonomous code generation and refactoring
  • Maintaining architectural consistency with Spec-Driven Development
  • Incremental code improvement with agents
  • Sharing best practices through instructions, rules, and steering files
  • Developing "Prompt Specific Language" (PSL) for consistent code generation

We'll also generate idiomatic Java 25 code that's both machine-readable and human-friendly. Questions and discussion are encouraged throughout.

Profile

Type: Learning Session (50 min)

Track: Enterprise Java, Cloud and Database

Audience Level: Intermediate

Speaker: Adam Bien

Session: Wednesday, March 18th at 2:00 PM in Auditorium