how to determine whether a class instance in java ran to its completion or not

Discussion in 'Java' started by google_java, Jul 8, 2003.

  1. google_java

    google_java Guest


    i have a method where i want to check whether a instance of a class
    ran to its completion or not.
    How would i determine whether the instance of the class ran completely
    or failed in between.

    If it failed how would i start processing the class from where the
    previous instance failed

    Help needed urgently. A code snippet would be highly appreciated.

    Thanks in advance
    google_java, Jul 8, 2003
    1. Advertisements

  2. google_java

    Roedy Green Guest

    There is no such concept in Java. An object can have methods run on it
    indefinitely. It is garbage collected once there are no more pointers
    to it.

    If you want to track whether something completed, you need a boolean
    field that you set on whatever you define by completion.
    Roedy Green, Jul 8, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.