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.

Ex:

  • Arithmetic Exception 
  • DivideByZero Exception 
  • NullPointerException 




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

Ex:


  •  JVM Error
  •  Hardware Error 


Next Article: 

How to handle Exception in Selenium 


Resources:






Comments

  1. Thanks for sharing this. You can also refer your audience to https://selenium-vinod.blogspot.in/2016/04/selenium-webdriver.html

    ReplyDelete

Post a Comment

Popular posts from this blog

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 2025 National Software Testing Conference 2018 Automation Testing Market Overview 2025 Also 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 m...

Choosing Software Testing as a Career -- Complete Guide

Complete Guide: What is Software Testing? Why Software Testing? Types of Software Testing Careers Software Tester Skills Manual Testing Manual Testing Skill Set Manual Testing Payscale in India Automation Testing Automation Testing Tools List Automation Tester Skill Set Automation Tester Career Path Automation Tester Job Opportunities Read Here:  Why Choose Software Testing as your Career?  You may also Like: Simple Tips to be the Best Automation Tester Top 3 Common Mistakes Testers Make - Solutions How to be the Big Boss of Selenium Automation

Top 10 Websites every Software Tester must Bookmark in 2018

For all the software testers, test automation experts and QA enthusiasts out there, we have compiled a list of 10 websites that you should bookmark in 2017. No matter, whether you want to solve a bug, get latest updates, find answers to the interview questions or anything else, this list of 10 websites will cover everything about QA and software testing. 1.  http://www.softwaretestinghelp.com Software Testing Help is a popular website focusing on Software Testing and Quality Assurance topics. With 1 million+ monthly views, the website caters to a wide range of testing professionals who are looking updates related to software testing tutorials, methodologies, manual testing, automation testing,  testing tools , interview questions, web testing, testing templates, quality assurance, testing certifications, books, career guidance, job openings, latest testing trends, news, and much more. 2.  http://www.softwaretestpro.com Software Test Professionals (STP)...