1.8 Forward references

Forward references in JShell is a concept that lets you refer to variables and methods that are not yet created when you use them in methods. This is not only convenient, but also essential when working with Java in a shell environment. Learn what it is and how to use it.