File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
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: 387
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: 14687
    
  16

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: 387
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
Software Life
I Always Wanna Post Java Related Topics
Unregistered?
World Market
WA #2 ..... word association