Tuesday, 23 October 2012

What is checked & Unchecked Exception in java ?

5 comments:

  1. Checked Exception in Java is all those Exception which requires being catches and handled during compile time. If Compiler doesn’t see try or catch block handling a Checked Exception, it throws Compilation error.



    Unchecked Exception in Java is those Exceptions whose handling is not verified during Compile time. Unchecked Exceptions mostly arise due to programming errors like accessing method of a null object, accessing element outside an array bonding or invoking method with illegal arguments. In Java, Unchecked Exception is direct sub Class of RuntimeException. What is major benefit of Unchecked Exception is that it doesn't reduce code readability and keeps the client code clean.

    ReplyDelete
  2. sir is there any sql query that recognize how many tables are affected when an insertion is done through a form

    ReplyDelete
    Replies
    1. one more table + total number of foreign key used in the database for joinning the tables.

      if you have any better idea then please share it on the blog.

      Delete
  3. you have to implement alert with all table. as the table got update table will show alert message.

    ReplyDelete