Australian shares have closed out the financial year with a rally following a strong lead from Wall Street overnight, as the see-saw action continues for the fourth day.