1. System class is defined in ……………..

2.
try{
   File f = new File(“a.txt”);
}catch(Exception e){
}catch(IOException io){
}

Is this code create new file name a.txt ?

3. Which of these classes defined in java.io and used for file-handling are abstract?
A. InputStream
B. PrintStream
C. Reader
D. FileInputStream
E. FileWriter

4. When comparing java.io.BufferedWriter and java.io.FileWriter, which capability exist as a method in only one of two ?

Previous ArticleNext Article

Leave a Reply

Your email address will not be published. Required fields are marked *