Packages included in these libraries share the same parent package or package path. I can’t imagine the things under the hood. Wouldn’t this lead to linking errors?
a.b.c is different from
a.b.c.d, there is no hierarchical relationship between any two packages in Java, as we may assume.