3i Infotech interview question

Basics of c. Java. Oops question