What is the Java equivalent of PHP var_dump?

后端 未结 11 622
北荒
北荒 2020-12-12 14:58

PHP has a var_dump() function which outputs the internal contents of an object, showing an object\'s type and content.

For example:

         


        
11条回答
  •  隐瞒了意图╮
    2020-12-12 15:05

    In my experience, var_dump is typically used for debugging PHP in place of a step-though debugger. In Java, you can of course use your IDE's debugger to see a visual representation of an object's contents.

提交回复
热议问题