File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How many ways can we create an object? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How many ways can we create an object?" Watch "How many ways can we create an object?" New topic
Author

How many ways can we create an object?

Bhairava Surya
Ranch Hand

Joined: Aug 19, 2007
Posts: 48
Hi all,
How many ways can we create an object? Also please provide a proper example for each?

Thanks,
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43423
    
  32
Several different ways. This question comes up every now and again; here is a thread from last year where somebody else asked the same question.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How many ways can we create an object?
 
It's not a secret anymore!