Monkhub interview question

Basic questions from Java core