Re: Code
From: Balaji. M. (bmuthuva_at_cisco.com)
Date: 05/21/04
- Next message: Liz: "Re: Zip Code Map"
- Previous message: Roedy Green: "Re: Zip Code Map"
- In reply to: neelu111_at_hotmail.com: "Code"
- Next in thread: Liz: "Re: Code"
- Reply: Liz: "Re: Code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 21 May 2004 21:35:33 +0530
neelu111@hotmail.com wrote:
> what does this code means
> data.getname() == null ) ? 0 : data.getname().size()
Basically, the code does the job of calling the "size" method of the
object, which returned by data.getname().
if we try to attempt to do an operation with a null object, it will
raise an error.
to avoid causing error, the code is checking for the returned object is
null or not.
- Next message: Liz: "Re: Zip Code Map"
- Previous message: Roedy Green: "Re: Zip Code Map"
- In reply to: neelu111_at_hotmail.com: "Code"
- Next in thread: Liz: "Re: Code"
- Reply: Liz: "Re: Code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]