Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the difference between isInstance() and newInstance() ?

 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the basic diff bet them
 
Sridhar Santhanakrishnan
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the java docs,


isInstance(Object obj)
Determines if the specified Object is assignment-compatible with the object represented by this Class.



newInstance()
Creates a new instance of the class represented by this Class object.


Is there anything specific that you didnt understand?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prabhat Ranjan wrote:What is the basic diff bet them

Please UseRealWords.
 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Christophe Verré wrote:
Prabhat Ranjan wrote:What is the basic diff bet them

Please UseRealWords.


mean "What is the difference between them"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic