How to exit JShell in Java ?

Exit JShell in Java : To exit JShell, type /exit. I stuck in JShell for minutes, commands like exit, ctrl + c, end, q!, q, quit all failed, the correct syntax to quit or exit the JShell is /exit. Finally, /exit References Wikipedia – JShell Oracle – Introduction to JShell