Tag - types of functions in java