bijay_ps
Broken In
public class Test{
//1. Test obj1=new Test();
Test(){}
public static void main(String[] args){
//2. Test obj2=new Test();
}
}
In this prgm if U'll write either only the stmnt 1 or stmnt 2 (those whic I have commented and mentioned as 1 and 2) then it'll work fine no compilation error n no runtime error. BUT IF U'll WRITE BOTH OF THEM THEN ITS A RUNTIME ERROR.
Now don't ask me whats the error just see for Urself. I jst wanna knw wats the rsn for this?
//1. Test obj1=new Test();
Test(){}
public static void main(String[] args){
//2. Test obj2=new Test();
}
}
In this prgm if U'll write either only the stmnt 1 or stmnt 2 (those whic I have commented and mentioned as 1 and 2) then it'll work fine no compilation error n no runtime error. BUT IF U'll WRITE BOTH OF THEM THEN ITS A RUNTIME ERROR.
Now don't ask me whats the error just see for Urself. I jst wanna knw wats the rsn for this?