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

G

google_java

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
 
R

Roedy Green

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.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top