Output of System.out.println(object)

后端 未结 4 823
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 09:35

I want to know what exactly the output is when I do the following.

class Data {
  int a = 5;
}

class Main {
  public static void main(String[] args) {
    d         


        
4条回答
  •  失恋的感觉
    2020-11-29 10:24

    The Javadoc for hashCode() and toString() in the Object class should be able to clarify this for you.

提交回复
热议问题