instanceof Operator
    Jonathan Gibbons 
    jonathan.gibbons at oracle.com
       
    Fri Apr  9 08:54:29 PDT 2010
    
    
  
Ramesh Mandaleeka wrote:
> Hi,
>
> Why there is not instanceOf() method in java.lang.Object just like equals()
> method. Why we need an operator? A class can tell if it equals to other
> object or not but why not an instanceOf(Object obj) method ( I guess it
> should be final too).
>
> Regards,
> Ramesh
>
>   
If this message was not off-topic for the list, I would reply that it's 
there and called isAssignableFrom.
-- Jon
    
    
More information about the coin-dev
mailing list