You were introduced to a hiring manager by one recruiter. First, he went through your CV and asked several questions about your current job and projects you engaged in. Then, the reason why you want to change your job and something about yourself. At last, they asked you to write some java code on the white board.