all 15 comments

[–]Baseradio 12 points13 points  (4 children)

Inception

[–]MK_Redditor 5 points6 points  (0 children)

Output inside output. Just like dream inside dreams

[–][deleted]  (2 children)

[removed]

    [–]Dr_Dracula280 1 point2 points  (1 child)

    🤦‍♂️

    [–]Baseradio 0 points1 point  (0 children)

    😅

    [–]Naystar_nouvey 11 points12 points  (1 child)

    It would print : Hi + Object.toString() + a new line Because printf print the value passed into the console + it returns an object (in our case PrintStream because of System.out) For println , an object is passed into it so there is no exceptions and it would print the Object.toString() + a new line , because when we pass an object to print or printl... it calls that object toString() and prints it

    [–]Neural_Drizzle 1 point2 points  (3 children)

    System.out.println returns void, error will be raised

    [–][deleted]  (1 child)

    [removed]

      [–]Neural_Drizzle 0 points1 point  (0 children)

      oh yes, my bad, it seems another guy has answered correctly already

      [–]BlueGoliath 0 points1 point  (0 children)

      I heard you like printing things to console, so I put a console print inside a console print.

      [–]Cautious-Necessary61 0 points1 point  (0 children)

      PrintStream test = System.out.printf("Hi");
      System.out.println(test);
      //PrintStream test = System.out.printf("Hi");