假设有定义String name=null,则下列选项中将引发异常的是
A.int a= name.length(); B.if(name!=null&&name.length()= =0) C.int a=(name = =null? 0;name.length()); D.if(name = =null | | name.length()= =0)正确答案A
假设有定义String name=null,则下列选项中将引发异常的是
A.int a= name.length(); B.if(name!=null&&name.length()= =0) C.int a=(name = =null? 0;name.length()); D.if(name = =null | | name.length()= =0)正确答案A