1 C/C++

class HelloWorld{
  public static void main(String args[]){
  }
}

2 Java

public class HelloWorld{
  public static void main(String args[]){
  }
}

3 Bash shell scripts

#!/bin/sh
LOG=event.log
echo "-----" >> $LOG
hostname >> $LOG
date >> $LOG
env |grep "^SERF" >> $LOG