Two frames are aadded first one static,final and second try,catch