This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
World Market
Unregistered?
I Always Wanna Post Java Related Topics
WA #2 ..... word association
Software Life