intermediateJava 8 & Streams91 of 436

Functional interface vs marker interface.

Tests whether you know a functional interface has exactly one abstract method (a lambda target, e.g. Runnable), while a marker interface has no methods at all and exists purely to tag a class for reflective or runtime checks (e.g. Serializable).

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

← Back to all Core Java questions