IBM interview question

The difference between method types in Java