• Post Reply Bookmark Topic Watch Topic
  • New Topic

How many ways of creating objects in Java?  RSS feed

 
Umesh Kilkile
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In how many ways we can create objects in Java?

Explain with an Example for each.

Thank you,

Umesh Kilkile
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a homework or interview question. Please DoYourOwnHomework. What have you come up with so far?
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:Sounds like a homework or interview question. Please DoYourOwnHomework. What have you come up with so far?


Agreed!
Though if the OP does not get back - I would think this would be an interesting question to answer ... Perhaps useful to others too...
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question has been asked before on the forums - you'll most likely find posts discussing this if you do a search. (Looks like this is some standard interview or homework question somewhere?).
 
Tom Reilly
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, if you give Google the exact title of this topic, the first item returned provides the answer
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!