How does Objective-C handle selector collisions at runtime?

Updated May 17, 2026

Short answer

Selector collisions are resolved by last method loaded into runtime method table.

Deep explanation

If multiple implementations exist for same selector (via categories or inheritance), runtime uses the last registered implementation. This can lead to unpredictable behavior in large dependency graphs.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Objective-C interview questions

View all →