ResourceBundle.Control toString() in Java

toString(): This method is available in java.util.ResourceBundle.Control class of Java.

Syntax:

String java.lang.Object.toString()

This method returns a string representation of the object.

Parameters: NA

Returns: a string representation of the object.

Exceptions: NA

Approach

Java

import java.util.ResourceBundle;
import java.util.ResourceBundle.Control;

public class ResourceBundleControltoString {
    public static void main(String[] args) {

        ResourceBundle.Control reControl =
ResourceBundle.Control.getControl(Control.FORMAT_DEFAULT);

        System.out.println(reControl.toString());
    }
}

Output:

java.util.ResourceBundle$Control@4361bd48


No comments:

Post a Comment