Johnson & Johnson interview question

Java basics and multiple core questions