The Australian sharemarket ended the day in the green following gains from utilities, real estate and banking stocks.