How to run java code

  Uncategorized

  • Create a file containing your java code and save it with an extension “.java.”
  • Pass the file to the compiler if everything is alright, the compiler will generate a “.class” file with the same name.
  • Pass this .class file to the JVM (Java Virtual Machine), and your code gets executed

LEAVE A COMMENT