Book Image

Hands-on Java 10 Programming with JShell [Video]

By : Mohamed Taman
Book Image

Hands-on Java 10 Programming with JShell [Video]

By: Mohamed Taman

Overview of this book

<p>This practical video series will help you master Java SE 10's JShell core concepts, commands, and advanced features, so you can become an interactive programming Ninja.</p> <p>By the end of the first section, you will have mastered JShell, Java 10's REPL (Read-Evaluate-Print Loop) flagship feature that enables you to quickly explore, discover, and experiment with the Java language and API features. You'll learn to reduce boilerplate coding using the new Java 10 feature var Local-Variable Type Inference while maintaining Java's compile-time type checking. We supply quick examples to help you understand what can and can't be done with this feature. Then you'll start and exit a JShell session, declare variables, evaluate expressions, import classes, and execute and edit code snippets.</p> <p>The second section delves into more advanced and complex JShell features. You'll edit code snippets and save them to a file, open a JShell snippets file to evaluate them, and set and use your favorite external editor to edit snippets. You'll declare and use classes and methods, and learn how to use the auto-complete feature to display method parameters and overloads. You'll work with JShell commands, and show the Java API documentation in JShell, learn how JShell wraps exceptions, and how to control JShell's feedback level for more verbose information.</p> <p>Finally, the third and last section will give you out-of-the-box ideas; it will show you how to import a custom package and modules for use in a JShell session, how JShell reinterprets Java for interactive use, and will provide hands-on experience of how to use the JDK internal API to develop an application to execute Java code such as Unix Shell scripts.</p> <h1>Style and Approach</h1> <p>This course takes a step-by-step approach to Java SE 10 Interactive programming core topics using JShell tool, which are explained in a conversational and easy-to-follow style. Each topic is explained sequentially in the process, with detailed explanations of the basic and advanced features of JShell.</p>
Table of Contents (3 chapters)
Chapter 3
JShell – Advanced Topics
Content Locked
Section 4
How JShell Reinterprets Java for Interactive Use?
The aim of this video is to learn and understand how JShell reinterprets Java for interactive use, and introduces some other additional features. - Introduce with code how JShell reinterprets Java for interactive use - Introduce keyboard shortcuts for snippet editing with code example - Know IDE that supports JShell