SPIRO THE TECH GURU

Back

can we create object for interface

By Admin on

we can not instatiate the interface (since do not have constructor). You cannot create object of an interface. the code that you mentioned creates an object of anonymous class that implements Runnable.
SPIRO Google Plus