out in System.out.println()

后端 未结 8 1047
刺人心
刺人心 2020-12-01 03:26

Firstly regrets if this is a very basic question and i promote that I\'m still a code monkey. I was asked in an interview to elucidate System.out.println(); I explained the

8条回答
  •  情话喂你
    2020-12-01 03:48

    System.out.println();

    here println is an object of printstream class.We can't directly create object for printstream class. Out is an object of system class. out is called field in system class. while calling system.out it indirectly creates object for printstream class. hence we can call println() method using System.out.prontln().

提交回复
热议问题