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

    Hi,

    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
     
    google_java, Jul 8, 2003
    #1
    1. Advertising

  2. google_java

    Roedy Green Guest

    On 8 Jul 2003 09:51:49 -0700, (google_java)
    wrote or quoted :

    >i have a method where i want to check whether a instance of a class
    >ran to its completion or not.


    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.

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
     
    Roedy Green, Jul 8, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ziggs
    Replies:
    2
    Views:
    205
    Henry Robinson
    Apr 21, 2004
  2. thunk
    Replies:
    1
    Views:
    359
    thunk
    Mar 30, 2010
  3. thunk
    Replies:
    0
    Views:
    536
    thunk
    Apr 1, 2010
  4. thunk
    Replies:
    14
    Views:
    660
    thunk
    Apr 3, 2010
  5. Kedar Mhaswade
    Replies:
    1
    Views:
    132
    Gary Wright
    Jan 25, 2011
Loading...

Share This Page