Sunday, 9 September 2012

Exemption and event Handling



One of the most interesting things about support for event-driven programming on the Java platform is that there is none, as such. Or, depending on your point of view, there are many different individual pieces of the platform that offer their own support for event-driven programming.

The reason that the Java platform doesn't offer one general implementation of event-driven programming is linked to the origins of the support that the platform does offer. Back in 1996 the Java programming language was just getting started in the world and was still trying to gain a foothold and conquer a place for itself in software development. Part of this early development concentrated on software development tooling like IDEs.

Click here for more info :)

13 comments:

  1. Exception handling is a very important yet often neglected aspect of writing robust software. When an error occurs in a Java program it usually results in an exception being thrown. How you throw, catch and handle these exception matters. There are several different ways to do so. Not all are equally efficient and fail safe.

    ReplyDelete
  2. Exception handling is very useful in such a way that it eliminate errors on software.

    ReplyDelete
  3. An exception is a problem that arises during the execution of a program. An exception can occur for many different reasons, including the following:

    A user has entered invalid data.

    A file that needs to be opened cannot be found.

    A network connection has been lost in the middle of communications, or the JVM has run out of memory.

    Some of these exceptions are caused by user error, others by programmer error, and others by physical resources that have failed in some manner.

    ReplyDelete
  4. Exceptions are nothing but some anomalous conditions that occur during the execution of the program. Exceptions are the conditions or typically an event which may interrupt the normal flow of the program's instructions.

    ReplyDelete
  5. One of the problems with exception handling is knowing when and how to use it.
    If the programmer handles the exception, he could deliver a useful error to the user and return the user to the beginning of the program so that they could continue to use it.


    ReplyDelete
  6. An exception is a problem that arises during the execution of a program. An exception can occur for many different reasons, including the following:

    A user has entered invalid data.

    A file that needs to be opened cannot be found.

    A network connection has been lost in the middle of communications, or the JVM has run out of memory.

    ReplyDelete
  7. An exception is a problem that arises during the execution of a program. An exception can occur for many different reasons, including the following:

    A user has entered invalid data.

    A file that needs to be opened cannot be found.

    A network connection has been lost in the middle of communications, or the JVM has run out of memory.

    ReplyDelete
  8. EXTRA INFO:

    The implementation of exception handling in programming languages typically involves a fair amount of support from both a code generator and the runtime system accompanying a compiler. Two schemes are most common. The first, dynamic registration, generates code that continually updates structures about the program state in terms of exception handling.Typically, this adds a new element to the stack frame layout that knows what handlers are available for the function or method associated with that frame; if an exception is thrown, a pointer in the layout directs the runtime to the appropriate handler code. This approach is compact in terms of space, but adds execution overhead on frame entry and exit. It was commonly used in many Ada implementations.

    ReplyDelete
  9. When a constructor throws an exception , no object is constructed;
    it's intended reference variable value will be null.

    C++ programmers are familiar with try and catch blocks, but C++ does not
    provide a finally block. C# and visual basic contain the keywords
    try, catch, and finally.

    ReplyDelete
  10. If you want some facts about java exception just do visit this site:

    http://www.roseindia.net/java/java-exception/index.shtml

    ReplyDelete
  11. The exeption handling is one of the powerful mechanism in java. It provides mechanism to handle the runtime errors so that the normal flow of the application can be maintained.

    ReplyDelete
  12. Exception handling is a very important yet often neglected aspect of writing robust software. When an error occurs in a Java program it usually results in an exception being thrown. How you throw, catch and handle these exception matters. There are several different ways to do so. Not all are equally efficient and fail safe.

    This trail digs deeper into exception handling in Java. The trail covers various do's and dont's of Java exception handling. It also covers a few techniques for efficient and less error prone exception handling. Hopefully you can benefit from some of these texts.

    The version of Java used in this tutorial is Java 6 and Java 7, though most of the techniques here work already from Java 5 and forward. Some even from Java 4.

    ReplyDelete