Java Data Type Tutorial - Java Package .getImplementationTitle ()








Syntax

Package.getImplementationTitle() has the following syntax.

public String getImplementationTitle()

Example

In the following code shows how to use Package.getImplementationTitle() method.

public class Main {
   /*from   www  .j  a  v a2  s .  com*/
   public static void main(String[] args) {
      
      // create a package object for java.lang package
      Package pack=Package.getPackage("java.lang");
  
      // get the Implementation Title for lang package
      System.out.println(pack.getImplementationTitle());
   }
}

The code above generates the following result.