Saturday, 28 September 2013

Confusion about Thread

Confusion about Thread

We can create a reference of an interface but not object. But how can we
pass new Runnable() to the Thread constructor. As per as my knowledge is
concert new Class_Name() is object.
Thread t = new Thread(new Runnable(){});

No comments:

Post a Comment