

Exceptions - Programming
Q1:
import java.io.*;
public class MyProgram
{
public static void main(String args[])
{
FileOutputStream out = null;
try
{
out = new FileOutputStream('test.txt');
out.write(122);
}
catch(IOException io)
{
System.out.println('IO Error.');
}
finally
{
out.close();
}
}
}
|


For help Students Orientation
Mcqs Questions
One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.