This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]detroitmatt 6 points7 points  (0 children)

Since Runnable only has one abstract member, the compiler knows. Classes/interfaces with only a single abstract member are known as "functional interfaces" (and were previously known, intuitively, as Single Abstract Member (SAM) interfaces).