• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How many ways can we create an object?

 
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
Sheriff
Pie
Posts: 49379
62
  • 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