Hi jason,
note that i have changed my name according to the rules.
consider the containers of the application servers.The values are serialized before passing to remote clients.in these cases does using null have a performance gain.
thanks
chandru ram
Howdy Chandru, we don't have many rules at the Ranch, but we do have some naming ones we like everyone to abide by. Click here, and then click on the My Profile link to change your name (you need a first and a last).
As far as your question, what type of stream are you talking about? For instance, if you are using an ObjectInput/OutputStream, then serializing null will cause null to come out on the other end.
As far as performance, I couldn't imagine there being much difference over using null versus an empty String. The empty String still creates an object, so you're actually serializing/deserializing something, but it's a really negligible something.