< Prev
Next >



Anonymous Threads



So far you have come across threads that are based on a class that has a specific name, which has either extended the Thread class or has implemented the Runnable interface. Some of you might be surprised to know that we can even create threads that are based on anonymous classes, i.e. classes with no name. For those of you, who are not completely aware of an anonymous class in Java, we would suggest you to please click here to know more about it.

For those who are aware of anonymous classes, let's go on with this article.




Please subscribe our social media channels for notifications, we post a new article everyday.

Decodejava Google+ Page Decodejava Facebook Page  DecodeJava Twitter Page

Coming Next
-
C++ and Python

Ad2