cleanair4me
Technical User
- May 16, 2008
- 61
I am using this JavaBean but I think I shouldnt be declaring String type with emply values and also instantiating the bean in the no arg constructor with null values:
Please advise how I should be doing this?
Code:
public class SimpleBean {
private String firstname = "";
private String lastname = "";
public SimpleBean()
{
firstname = null;
lastname = null;
}
..
Please advise how I should be doing this?