How a package hierarchy can contain another package class

I am not sure about the java.lang hierarchy. How can it contain the java.security.Permission class? Follow the link and find java.security.Permission .

+5
source share
1 answer

It does not contain this class. It just shows that java.lang.RuntimePermission comes from java.security.BasicPermission , which is derived from java.security.Permission .

The class contained in the java.lang , java.lang.RuntimePermission , but the full class hierarchy is displayed on this web page, even if this class is not contained in the java.lang .

+10
source

Source: https://habr.com/ru/post/1273939/


All Articles