| | hi, all, I have a question, can anybody give an answer? Thanks in advance. Why the following code throws NullPointerException? String v =null; System.out.println("aaaaa"+v==null?"":Integer.toString(v.length())); while the following code not? String v =null; System.out.println("aaaaa"+(v==null?"":Integer.toString(v.length()))); |

