FileInputStream fis = new FileInputStream();int t = fis.read;如何看read方法返回值是int類型的數?源碼沒有實現?
2 回答

jeck貓
TA貢獻1909條經驗 獲得超7個贊
read方法是抽象類InputStream的抽象方法,在FileInputStream有實現
public int read() throws IOException {
return read0();
}
private native int read0() throws IOException;
要看native方法需要下載完整的OpenJDK源碼包可以查看
添加回答
舉報
0/150
提交
取消