NDOT Technologies interview question

all the questions from Java t point