Skip to main content

Exception Handling - What is Exception - How to Handle Exception

Exception is mainly an issue which may be anything which particularly stops the execution of the process. In normal terms “an error which interrupts the program or application which blocks its functionality”.

It is meant to be Handled;

As explained above it is to be handled on priority, because when an exception occurs the overall progress of the program gets terminated and it stops the result too. The occurrence of the exception is depends on the program which may be either at the run time or during the execution time.

Ever worried about “Why it occurs”

Exception is an abnormal condition, hence there is no certain reasons to note the occurrence of it, lemme share few situations here, if opening a file which is not present, memory error and many.

Here is the best thing”

As denoted above Exceptions are conditions within the code. Hence a developer can able to handle the exceptions and take necessary actions.

Difference between Exception and Error:

Exception: It occurs within the code which can be handled.


  • Arithmetic Exception 
  • DivideByZero Exception 
  • NullPointerException 

Error:  It can’t be resolved by programmer. The reason here is lack of system resources


  •  JVM Error
  •  Hardware Error 

Next Article: 

How to handle Exception in Selenium 



  1. Thanks for sharing this. You can also refer your audience to


Post a Comment

Popular posts from this blog

Top 50 Tricky Selenium Interview Questions

Previous Post: Good News for Selenium Testers 
1. What are the annotations used in TestNG? @Test, @BeforeSuite, @AfterSuite, @BeforeTest, @AfterTest, @BeforeClass, @AfterClass, @BeforeMethod, @AfterMethod 2. How do you read data from excel? FileInputStream fis = new FileInputStream (“path of excel file”); Workbook wb = WorkbookFactory.create (fis); Sheet s = wb.getSheet (“sheetName”) String value = s.getRow (rowNum).getCell (cellNum).getStringCellValue (); 3. What is the use of xpath? It is used to find the WebElement in web page. It is very useful to identify the dynamic web elements. 4. What are different types of locators? There are 8 types of locators and all are the static methods of the By class. () ()By.tagName ()By.className ()By.linkText ()

Complete Selenium Topics to be a Professional Selenium Tester

Complete Topics in Selenium to be a Professional Tester Free PDF Below

•        What is automation testing? •        When Automation Testing is needed? •        When Automation Testing is not needed? •        What is the use of automation testing? •        Different Automation Tools available in the Market. •        What is the difference between Selenium and QTP?
•        What is Selenium? •        Advantages of Selenium
•        IDE Overview •        RC Overview •        Selenium-Grid •        Selenium Web Driver/Selenium 3.0
•        Installing IDE •        IDE icons •        Recording your first test with IDE •        IDE Context Menu •        Assert •        Verify •        Adding IDE comments •        Synchronization commands •        Working on pages with AJAX •        Storing elements •        Creating test suites •        Tools  to identify elements/objects •        …

Important Update from the National Software Testing Conference 2018..!

Hello friends,
Happy to see you all after a gap!
This time I came with an important & interesting information regarding Software Testing…!
Here is the Kicker;
Here I have listed down the latest update in software testing which every software testers must know about. Automation Testing Market – Forecast 2025National Software Testing Conference 2018Automation Testing Market Overview 2025Also Read: Complete Guide to Choose Software Testing as Your Career
All the information below is collected from the report of the recent National Level Software Testing Conference 2018 held in London.

Automation Testing Market Report provides thorough backdrop investigation of Automation Testing business, with an evaluation of the previous years.
The Automation Testing Market Reports provides data on Automation Testing patterns and improvements, and target business sectors and materials, limits and advancements. 
The report broadly provides the market size, share, trends, growth and forecasts to 2025.
The st…