Nashorn is a JavaScript engine for Java that is integrated with JSR-223 and released with Java 8. It aims to provide fast and compliant ECMAScript 5.1 JavaScript execution using invokedynamic and MethodHandles to dynamically link and optimize code at runtime. This allows Nashorn to handle JavaScript's dynamic nature better than previous engines like Rhino by hotswapping optimized codepaths. Nashorn is small, fast, and fully compliant while providing tight integration between JavaScript and Java through JSR-223.