smoothly. What is try Block? try Block consist of code that might generate error. try must be associated with one or more catch block or by finally block. try Block need not necessarily have a catch Block associated with it but in that case it must have a finally Block associate with it. Example of try Block Format1 try { //Code that might generate error } catch(Exception errror) { } Format2 try { //Code that might generate error } catch(ExceptionAerrror) { } catch(ExceptionB error) { } Format3 try { //Code that might generate error } finally { } What is catch Block? Catch Block is used to recover from error generated in try Block.
smoothly. What is try Block? try Block consist of code that might generate error. try must be associated with one or more catch block or by finally block. try Block need not necessarily have a catch Block associated with it but in that case it must have a finally Block associate with it. Example of try Block Format1 try { //Code that might generate error } catch(Exception errror) { } Format2 try { //Code that might generate error } catch(ExceptionAerrror) { } catch(ExceptionB error) { } Format3 try { //Code that might generate error } finally { } What is catch Block? Catch Block is used to recover from error generated in try Block.
VB.NET%20Classes%20and%20Objects.docx