Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java standard exceptions

    - ArithmeticException 
    It is thrown when an exceptional condition has occurred in an arithmetic operation.
    
    - ArrayIndexOutOfBoundsException 
    It is thrown to indicate that an array has been accessed with an illegal index. The index is either negative or greater than or equal to the size of the array.
    
    - ClassNotFoundException 
    This Exception is raised when we try to access a class whose definition is not found
    
    - FileNotFoundException 
    This Exception is raised when a file is not accessible or does not open.
    
    - IOException 
    It is thrown when an input-output operation failed or interrupted
    
    - InterruptedException 
    It is thrown when a thread is waiting, sleeping, or doing some processing, and it is interrupted.
    
    - NoSuchFieldException 
    It is thrown when a class does not contain the field (or variable) specified
    
    - NoSuchMethodException 
    It is thrown when accessing a method which is not found.
    
    - NullPointerException 
    This exception is raised when referring to the members of a null object. Null represents nothing
    
    - NumberFormatException 
    This exception is raised when a method could not convert a string into a numeric format.
    
    - RuntimeException 
    This represents any exception which occurs during runtime.
    
    - StringIndexOutOfBoundsException 
    It is thrown by String class methods to indicate that an index is either negative or greater than the size of the string
Comment

how do you handle exceptions in java

I use try & catch blocks to handle any exceptions in my code. 
  I am familiar with major checked and unchecked exceptions and 
  handle it accordingly to make my code execution smooth
Comment

PREVIOUS NEXT
Code Example
Java :: one line if statement java 
Java :: Binary tree using linked list in Java 
Java :: sc.nextline skips 
Java :: android canvas line thickness 
Java :: linkedhashmap in java 
Java :: crear objetos automaticamente java 
Java :: java hashcode 
Java :: how to get color from a hex string in android studio 
Java :: java turn string into int 
Java :: lombok maven plugin 
Java :: esponente in java 
Java :: use regex in if statement java 
Java :: palindrome java 
Java :: register watch service java 
Java :: convert int to byte java 
Java :: java get jar execution directory 
Java :: switch case enum java 
Java :: Android: remove shadow from bottom navigation 
Java :: Convert Strings To Mathematical Expressions In java 
Java :: java print 2d array as table 
Java :: what is var in java 
Java :: commenting in java 
Java :: string.indexof java 
Java :: java swing get frame size 
Java :: jpa page sort 
Java :: spring 5 jdbctemplate query for a single value 
Java :: how to plus two numbers in java 
Java :: on item click listener for recyclerview adapter 
Java :: java protected keyword 
Java :: java how to know if there is something on arguments 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =