Package java.lang

Class Package

    • Constructor Detail

      • Package

        public Package()
    • Method Detail

      • getName

        public String getName()
        Return the name of this package.
        Returns:
        The fully-qualified name of this package as defined in section 6.5.3 of The Java™ Language Specification, for example, java.lang
      • toString

        public String toString()
        Returns the string representation of this Package. Its value is the string "package " and the package name. If the package title is defined it is appended. If the package version is defined it is appended.
        Overrides:
        toString in class Object
        Returns:
        the string representation of the package.