Want to be an Interactive Java programming ninja? Unleash your super-powers with this self-paced, practical guide, including real-life examples and clear instructions.
About This Video
- Learn about JShell—Java 10's REPL (Read-Evaluate-Print Loop) flagship feature.
- Learn how to reduce boilerplate code using the new Java 10 feature var Local-Variable Type Inference, while maintaining Java's compile-time type checking.
- Learn to start and exit a JShell session.
- Learn how to declare and use a class and methods.
- Learn how to use the auto-complete feature and JShell commands and import a custom package for use in a JShell session, and how to work with modules in JShell.
- Learn how to use the internal JDK API to develop an application to execute Java code such as Unix Shell scripts.
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.
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.
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.
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.
Table of Contents
- Chapter 1 : Interactive Java Shell 10 Basics
- Chapter 2 : JShell – A Bigger Scale
- Chapter 3 : JShell – Advanced Topics
- Title: Hands-on Java 10 Programming with JShell
- Release date: July 2018
- Publisher(s): Packt Publishing
- ISBN: 9781787122901