Java源码阅读之System类详解

Java源码阅读之System 类详解

0. 类介绍

The System class contains several useful class fields and methods. It cannot be instantiated.
Among the facilities provided by the System class are standard input, standard output, and error output streams; access to externally defined properties and environment variables; a means of loading files and libraries; and a utility method for quickly copying a portion of an array.

System 类包含数个有用的类变量已经方法。它不能实例化。System 类提供的功能包括标准输入、标准输出和错误输出流;访问外部定义的属性以及环境变量;加载文件以及类库的方式;以及一个用于快速拷贝数组一部分的方法

1. 主要变量
1.1 in
public static final InputStream in = null;

The “standard” input stream. This stream is already open and ready to supply input data. Typically this
stream corresponds to keyboard input or another input source specified by the host environment or user.

标准输入流。这个流已经被打开,并且准备提供数据输入。典型地,这个流与键盘输入相对应或者其它的输入源,由主机环境或者用户指定的源。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

说文科技

看书人不妨赏个酒钱?

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值