class hey{
String s;
hey(){
if(s.length()==0){
System.out.println("Hello");}
else{
System.out.println("Fail");}
}
public static void main(String args[]){
new hey();
}}
when I compile it, I will get NullPointException even if I will check s.length()<0; or s.length()>0;
why is that?
Jaffery