Predefined methods in java. Improve this question.