前一段时间我阅读别人的代码,发现有的时候用isEmpty,有的时候用null,有的时候用"".我很困惑三者之间的区别,于是我就自己写了一个程序来验证一下 public class Test { public static void main(String[] args) { //分配内存空间,值为空 String a = new String(); //分配内存空间,值为空字符串 String b = ""; //未分配内存空间 String c = null; i…
One of my favourite questions in MDX is the difference between Non Empty and NonEmpty because even though many people use them daily to remove NULLS from their queries, very few understand the working behind it. Many times, I have even got answers li…