IBM interview question

all related to basics from core java