目的是告訴要呼叫該方法的方法要處理這些異常,例如以try/catch處理。throws通常定義於非主方法。 import java.io.*;. class ThrowsClass {.
確定! 回上一頁