Re: <code> if (object instanceof Object) </code> is that code expensive?

Grant Ingersoll <[email protected]>
Newsgroups gmane.org.user-groups.trijug.juglist
Message-ID <[email protected]>
Do you have an alternative means for determining the runtime type?  In  
other words, is it expensive compared to ________?

See also: http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=15&t=001314

Are you using it inside of some tight loop control or making large  
numbers of calls to it or are you just wondering for pedagogical  
purposes?

On Sep 18, 2008, at 5:32 PM, Vamsee Movva wrote:

> Hello guys,
>
> I heard that
>
> <code>
>
> if(object instanceof Object)
>
> </code>
>
> is very expensive (performance)
>
> is it true?
>
> Thanks in advance
>
> Cheers,
> Vamsee.
>
> _______________________________________________
> Juglist mailing list
> [email protected]
> http://trijug.org/mailman/listinfo/juglist_trijug.org

_______________________________________________
Juglist mailing list
[email protected]
http://trijug.org/mailman/listinfo/juglist_trijug.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.