Re: Code

From: Balaji. M. (bmuthuva_at_cisco.com)
Date: 05/21/04


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.