class A {
    String str = null;
    String str1;
}
请问上面两种定义属性的方法在为此类分配内存时有什么区别吗?