Java.lang.getImplementationVendor() Method



Description

The java.lang.Package.getImplementationVendor() method returns the name of the organization, vendor or company that provided this implementation.

Declaration

Following is the declaration for java.lang.Package.getImplementationVendor() method

public String getImplementationVendor()

Parameters

NA

Return Value

This method returns the vendor that implemented this package.

Exception

NA

Example

The following example shows the usage of lang.Object.getImplementationVendor() method.

package com.tutorialspoint;

public class PackageDemo {

   public static void main(String[] args) {

      // create a package object for java.lang package
      Package pack = Package.getPackage("java.lang");

      // get the implementation vendor
      System.out.println("" + pack.getImplementationVendor());
   }
}

Let us compile and run the above program, this will produce the following result −

Sun Microsystems, Inc.
java_lang_package.htm
Advertisements