Questions about object references in Java
给我你的怀抱
给我你的怀抱 2017-05-27 17:40:20
0
1
622

1. Are the references of all class objects only storing memory addresses?
2. Are all references to class objects of the same data type as the class object? String a = new String("b") Can a be regarded as a String type?
3. How is the memory address stored in the reference? Where is it stored?

Thanks

给我你的怀抱
给我你的怀抱

reply all(1)
某草草

Recommend you to read this book https://book.douban.com/subje...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template