4.3.4 When Reference Types Are the Same
Two reference types the same type if:
- They are both class or both interface types, are loaded by the same class loader, and have the same fully-qualified name (§6.6), in which case they are sometimes said to be the same class or the same interface.
- They are both array types, and have the same component type (§10).