IBM interview question

Questions about c and java.