try with multi catch in java

Try with multi catch: One try block can have multiple catch blocks. In try block, we can define number of instructions. Try block can raise more than one exception from its logic. To handle different …

Handling Exception in java

Handling Exception: Try block contains doubtful code that raises exception. When exception raises, try block throws exception object to catch block. Catch block collects the exception object and handles. If no exception in try block, …

java try catch

Try-Catch: Java API provides 5 keywords to handle exceptions. Keywords are try, catch, finally, throws and throw. try: ‘try’ is a keyword. It is used to define a block. It contains doubtful code that raises …

Exception Hierarchy

Exceptions Hierarchy: Java API is providing pre-defined Exception classes and Error classes. Java.lang.Throwable is the super class of all exception classes. Exception and Error are the direct extensions (sub classes) of Throwable. We cannot handle …

Java Exception Codes

ArithmeticException: This exception class is belongs to lang package. It occurs when we divide any number with zero value. InputMismatchException: This exception class is belongs the java.util  package Scanner class is used to read input …

Exception Handling in Java

Introduction to Exceptions: In the process of compilation and execution of Java application, chance of getting 3 types of errors (Syntax, Logical and Runtime). Exception is a Runtime Error. Exception is a class. Exception causes …

Python Local variables

Local variables: Defining a variable inside the function. Local variables can be accessed only from the same function in which it has defined. We access the local variable directly. Arguments of a function: Variables used …

Variables in Python

Variable: Variable is an identity of memory location The main aim of application is “Data Processing”. Variables are used to store and process the data of a Program. Name Rules to define identifier: Python Variables/identifiers …

pass keyword in Python

pass: “pass” is a keyword It is a branching statement. It is used to define a block or function or loop or class with empty body. We cannot define these things directly. pass keyword in …

continue in Python

continue: “continue” is a keyword. It is used to terminate a particular iteration in loop execution. It continues with the next iteration in the loop after terminating current iteration. Display 0 to 9 without 5: …

Courses Enquiry Form