Interview Question in :- java