Re: How to Tell Which Class an Object Is
- From: "Darryl L. Pierce" <mcpierce@xxxxxxxxx>
- Date: Fri, 30 Sep 2005 06:45:15 -0400
Thomas Hawtin wrote:
To check I just ran the following over the latest Java SE 6 snapshot:
find /mnt/small/mustang/b53/ -name "*.java" -exec grep -h \\.class {} \; | grep if
There were some clusters of using .equals(), but by far and away the winner was ==.
And did you make sure to differentiate its use on primitives (for which ..equals() isn't possible) and its use on object references?
-- Darryl L. Pierce <mcpierce@xxxxxxxxx> Homepage: http://mcpierce.multiply.com/ "Bury me next to my wife. Nothing too fancy..." - Ulysses S. Grant .
- References:
- How to Tell Which Class an Object Is
- From: kvnsmnsn
- Re: How to Tell Which Class an Object Is
- From: Dave Glasser
- Re: How to Tell Which Class an Object Is
- From: Dave Glasser
- Re: How to Tell Which Class an Object Is
- From: Thomas Hawtin
- How to Tell Which Class an Object Is
- Prev by Date: Re: servletContext inputstream problem
- Next by Date: getting error on applet again
- Previous by thread: Re: How to Tell Which Class an Object Is
- Next by thread: how to disable a JButton while an op completes?
- Index(es):