It's not a secret anymore!
The moose likes Java in General and the fly likes What is the difference between isInstance() and newInstance() ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "What is the difference between isInstance() and newInstance() ?" Watch "What is the difference between isInstance() and newInstance() ?" New topic
Author

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

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 361
What is the basic diff bet them
Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Posts: 317
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

Joined: Nov 24, 2005
Posts: 14672
    
  11

Prabhat Ranjan wrote:What is the basic diff bet them

Please UseRealWords.


[My Blog]
All roads lead to JavaRanch
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 361
Christophe Verré wrote:
Prabhat Ranjan wrote:What is the basic diff bet them

Please UseRealWords.


mean "What is the difference between them"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the difference between isInstance() and newInstance() ?
 
Similar Threads
Unregistered?
Software Life
WA #2 ..... word association
I Always Wanna Post Java Related Topics
World Market