main in java means code example Example: java main class myClass { public static void main(String[] args) { // code } }