Don't know what "O/P" means, but I think you're giving those as the answers. In that case, the first one is wrong. I see three variables (as do you, of course) each being assigned a newly-created object, so there are 3, and not 0, objects. In the second problem, there are obviously 4 and 4, going by the traditional SCJP interpretation (of course, there are many more objects created during the execution of each of these programs, but we're playing by the rules.)
These kinds of questions -- i.e., "tricky test questions" -- really belong in the SCJP forum. I'm going to move this over there.