Both mean and median are good measures of central tendency. But the median is better in the presence of outliers as the mean is highly affected by outliers.