Compiled: Java, C, C++, C#
Interpreted: Python, NodeJS, Ruby, Perl
Example for Java
Develop MyClass.java:
public class MyClass {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
Compile Java code:
$ javac MyClass.java
MyClass.class
Execute Java binary:
$ java MyClass
Hello World
Example for Pythondef print_message():
print("Hello World")
if __name__ == '__main__':
print_message()
Run Python code with an interpreter:
$ python main.py
Hello World