An I am doing following validations.. if(name == null) {doSomething; } else if(name != null){do Somethign;}
What I have observed is when I write if(name != null)condiiton before if(name == null)condiiton, when the name is not null the if(name != null) condiiton is ignored. but if works fine as mentioned in the first para.