VOOZH about

URL: https://www.geeksforgeeks.org/java/charset-isregistered-method-in-java-with-examples/

⇱ Charset isRegistered() method in Java with Examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Charset isRegistered() method in Java with Examples

Last Updated : 28 Mar, 2019
The isRegistered() method is a built-in method of the java.nio.charset checks if a given charset is registered or not under the IANA Charset Registry. Syntax:
public final boolean isRegistered()
Parameters: The function does not accepts any parameter. Return Value: The function returns a boolean value. It returns true if it is registered, else it returns false. Below is the implementation of the above function: Program 1:
Output:
true
Program 2:
Comment