VOOZH about

URL: https://www.geeksforgeeks.org/java/provider-getname-method-in-java-with-examples/

⇱ Provider getName() method in Java with Examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Provider getName() method in Java with Examples

Last Updated : 17 Jan, 2023

The getName() method of java.security.Provider class is used to return the name of this provider. 

Syntax:

public String getName()

Return Value: This method returns the name of this provider. 

Below are the examples to illustrate the getName() method: 

Example 1: 

Output:
name : SUN

Example 2: 

Output:
name : SUN
Comment