aspose 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
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: 45
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: 38865
    
  23
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?