Basic two types of programming languages

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 Python
Develop Python code main.py:
def print_message():
  print("Hello World")

if __name__ == '__main__':
  print_message()
Run Python code with an interpreter:
$ python main.py
Hello World