单项选择题

在使用System.out.print方法向控制台输出信息时参数可以传各种类型,原因是()。

A.PrintStream类中对print方法进行了重写
B.在传入参数时发生了自动类型转换
C.在传入参数时发生了强制类型转换
D.PrintStream类中对print方法进行了重载