Wouldn't Java be worse at both rather than balanced between the two? Please provide an explanation of the pros and cons of Java in that regard.