Java

Commands

Compile & Run

$ javac HelloWorld.java
$ java HelloWorld

It provides software for working with Java applications. Examples of included software are:

  • the virtual machine
  • a compiler
  • performance monitoring tools
  • a debugger

run the binary /usr/libexec/java_home to know where in the system Java is installed

Commands

List Java versions installed

  • $ /usr/libexec/java_home -V

Resources

  • VisualVM
    • provides a visual interface for viewing detailed info about a Java application as it is running in the JVM

Children
  1. Java Environment
  2. Keywords
  3. Object
  4. Types
  5. Variables