Class LaunchMultiFileSourceProgramsNotes

java.lang.Object
net.jrodolfo.java_evolution.java22.LaunchMultiFileSourceProgramsNotes

public class LaunchMultiFileSourceProgramsNotes extends Object
Explains launching multi-file source-code programs, introduced in Java 22.

Java's source launcher lowers the barrier for small programs because a build tool is not required for the first experiment. Java 22 expanded this idea to multi-file source programs, which helps small examples grow a little before they need Maven or Gradle.

This repository keeps the feature as notes because testing launcher behavior would require creating temporary source trees and spawning separate Java processes.

  • Constructor Details

    • LaunchMultiFileSourceProgramsNotes

      public LaunchMultiFileSourceProgramsNotes()
  • Method Details

    • purpose

      public String purpose()
      Explains the launcher goal.
      Returns:
      a short explanation
    • exampleCommand

      public String exampleCommand()
      Shows the basic command shape.
      Returns:
      sample command
    • projectDecision

      public String projectDecision()
      Explains why this project documents the behavior instead of launching it.
      Returns:
      the project decision