4 examples for java

{{ score }}
  # Run an executable jar file
java -jar my_jar_file.jar
        
{{ score }}
  # Run a main class
# (Must be in the same directory as the MainClass.class file)
java MainClass [arg0 arg1 arg2 ...]
        
{{ score }}
  # What version of java
java -version
        
{{ score }}
  # Execute a compiled Java class file
java foo.class