标签: java class object reference
在java中,Book c = new Book() 这里c是参考。为什么引用的类型是类名。特殊原因是什么?
Book c = new Book()
答案 0 :(得分:2)
Book c = new Book(); // c points to a Book object. Now, if you declare c as an int, it means that c points to an int.