Possible Duplicate:
What are all the different ways to create an object in Java?
How many ways to create an object in java? I was asked about this in a recent interview.
Since everything in Java is on the heap, I would think 'new' is the way to go. Comments?