• Post Reply Bookmark Topic Watch Topic
  • New Topic

How many ways can we create an object?  RSS feed

 
Bhairava Surya
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
How many ways can we create an object? Also please provide a proper example for each?

Thanks,
 
Campbell Ritchie
Marshal
Posts: 56576
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!