what is the equivalent to e.execute(r); where e is the object of type Executor interface and r is the object of Runnable interface
(new Thread(r)).start(); = e.execute(r);
that means e.execute(r); , will create the thread the Thread Object , assign some task represented by Runnable interface object and start that thread
No comments:
Post a Comment