11, the class loader namespace

11.1, the concept of

  • Each class loader has its own namespace namespace of the parent of the loader and the loader all loaded classes.
  • In the same namespace, the full names of the two classes of the same class does not appear.
  • In different namespaces, it is possible the same two classes full class name appears.

11.2, the relationship between different namespace class loader

  • The same namespace classes are mutually visible.
  • Namespace child loader namespace contains all the parent loader, therefore, the sub-loader loaded class can see all of the parent class loader loaded, and the parent class loader loads can not see the child loader loaded class.
  • If there is no direct or indirect parent-child relationship between two loaders, they are each loaded class invisible to.

Guess you like

Origin www.cnblogs.com/sunhao1234/p/12343975.html