Tag - example of return type function in java