© Kishori Sharan 2019
K. SharanJava 13 Revealedhttps://doi.org/10.1007/978-1-4842-5407-3_4

4. Launching Single File Source Code Programs

Kishori Sharan1 
(1)
Montgomery, AL, USA
 
In this chapter, you will learn
  • What the Java launcher is

  • The different modes you can use to run the java command

  • What the source-file mode for the java command is

  • How to run source code written in a single file using the java command

  • How the java command selects the class to run in the source-file mode

  • About the class loading mechanism in the source-file mode

  • How and when to use the --source option with the java command

  • How to create utility programs written in Java on UNIX-like operating systems using a shebang

What Is the Java Launcher?

When you develop a Java application, you need ...

Get Java 13 Revealed: For Early Adoption and Migration now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.