Skip to content

标准输入输出流


一、标准输入、输出流

介绍类型默认设备
System.in 标准输入InputStream键盘
System.out 标准输出PrintStream显示器

1. System.in

  • 属性:public final static InputStream in = null;
  • 编译类型:InputStream
  • 运行类型:BufferedInputStream

2. System.out

  • System.out public final static PrintStream out = null;
  • 编译类型:PrintStream
  • 运行类型:PrintStream