Seetharaman Venkatasamy wrote:can you justify your answer?
well, this is what i get from our discussion
1- for the first case since the Reference variable is declared inside the method it will get vanished as the method runs and completes.
2-for the second case HAS-a only concerns the Reference variable not the Object being created.