Print the logic of the println() method

The logic for printing the println() method:

  1. If it is a string type, then display the content directly.

  2. If it is not a string type, then try to convert it into a string internally, and then display it.

    General objects use " type information + @ + address value " as the string content.

Essentially: all strings are printed.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324382477&siteId=291194637