android - Lifetime of anonymous object run as thread in Java -
within method have following,
runnable r = new runnable() { public void run() { ... ... } }; new thread(r).start();
what lifetime of anonymous object , thread ?
what lifetime of anonymous object , thread ?
1) thread keeps running until stop it.
2) object scope(r
) in method.
Comments
Post a Comment