1Z0-805日本語 無料問題集「Oracle Upgrade to Java SE 7 Programmer (1Z0-805日本語版)」

public static void main(String[] args) {
Path file = Paths.get("D:\\company\\report.txt");
try (SeekableByteChannel sbc = Files.newByteChannel(file,new OpenOption[]
sbc.position(5);
sbc.truncate(30);
} catch (IOException e) {
System.err.printin("Caught IOException: " + e.getMessage () } ;
}
}

正解:C
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)