Results 1 to 10 of 10

Thread: what is Exception in java ?

  1. #1

  2. #2
    Registered
    Join Date
    Mar 2016
    Posts
    76
    The exception is used for exceptional condition that user's program should catch.

  3. #3
    Registered pxljobs's Avatar
    Join Date
    Jul 2016
    Location
    Bangalore
    Posts
    290
    Exception is the problem arise during the execution of the program exception occur normal flow of the program it disrupted program terminates abnormally so it will harmful to the program so must we can handle this exception.

  4. #4
    Registered
    Join Date
    Aug 2016
    Location
    Mysore
    Posts
    19
    What pxljobs say is right. and Exception in java is a event.

  5. #5
    Thoughtgrid Thoughtgrid's Avatar
    Join Date
    Jul 2016
    Location
    Bangalore
    Posts
    219
    Generally exceptions are event occurs during execution of the program in java exception is an object wrap an error event occur within a method the main uses of exception are separate error handling code from regular code,standardize error handling.

  6. #6
    Exceptions are events that occur during the execution of programs that disrupt the normal flow of instructions (e.g. divide by zero, array access out of bound, etc.). In Java, an exception is an object that wraps an error event that occurred within a method and contains: Information about the error including its type.

  7. #7
    Registered
    Join Date
    Nov 2016
    Posts
    573
    Exceptions are events that occur during the execution of programs that disrupt the normal flow of instructions (e.g. divide by zero, array access out of bound, etc.). In Java, an exception is an object that wraps an error event that occurred within a method and contains: Information about the error including its type.

  8. #8
    Exceptions are the customary way in Java to indicate to a calling method that an abnormal condition has occurred.

  9. #9
    Registered
    Join Date
    Jan 2018
    Posts
    31
    The exception handling in java is one of the powerful mechanism to handle the runtime errors so that normal flow of the application can be maintained. In this page, we will learn about java exception, its type and the difference between checked and unchecked exceptions.

  10. #10
    Registered
    Join Date
    Oct 2016
    Posts
    270
    The built-in exceptions in Java are categorized on the basis of whether the exception is handled by the Java compiler or not. Java consists of the following categories of built-in exceptions:

    - Checked Exceptions
    - Unchecked Exceptions

    In general, unchecked exceptions represent defects in the program (bugs), which are normally Runtime exceptions.
    Furthermore, checked exceptions represent invalid conditions in areas outside the immediate control of the program.

    1)Checked Exception:

    In general, unchecked exceptions represent defects in the program (bugs), which are normally Runtime exceptions.

    The classes that extend Throwable class except RuntimeException and Error are known as checked exceptions e.g.IOException,SQLException etc. Checked exceptions are checked at compile-time.

    2)Unchecked Exception:

    The classes that extend RuntimeException are known as unchecked exceptions e.g. ArithmeticException,NullPointerException etc. Unchecked exceptions are not checked at compile-time.
    Best Android Training | Devops Training | SQL Server Training and many more IT courses.

Similar Threads

  1. Java Script
    By seobangalore in forum HTML, CSS, Layout, and Design
    Replies: 11
    Last Post: 11-27-2017, 04:14 AM
  2. What is System.out in Java?
    By penrix in forum HTML, CSS, Layout, and Design
    Replies: 10
    Last Post: 07-06-2017, 02:07 AM
  3. looking for java vps
    By Paul-Henri in forum Web Hosting & Servers
    Replies: 4
    Last Post: 12-30-2015, 04:57 AM
  4. java help
    By VietBoyVS in forum Website Programming & Databases
    Replies: 3
    Last Post: 05-01-2004, 12:49 PM
  5. Java Script
    By Browneyes105 in forum HTML, CSS, Layout, and Design
    Replies: 8
    Last Post: 01-22-2004, 05:18 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •