sample of return values in if else and try catch blocks