object - toString自动调用?when println

review for final of CSE142 

first question: ReferenceMystery

object - toString自动调用?when println_第1张图片

注释掉toString method之后打印出(在memory里地址?)

why is this so --> ? 

object - toString自动调用?when println_第2张图片

same issue

it seems like the first statement inside the for loop automatically call toString method and return "c"

object - toString自动调用?when println_第3张图片

你可能感兴趣的:(object - toString自动调用?when println)