If the java program is compiled as
javac t1.java > a //error contents redirecedt to a,file a.But a doesnt have the error contents
The contents of t1.java is as:
class t1{
public static void main(String[] args) {
System.out.printn("Hello World!"); // Display the string.
}
}
So now there is a error i.e, println is written as print n
,how to capture this error in file a
The command is executed from linux command prompt
Thanks....