In java, String format() method returns a formatted string using the given locale, specified format string, and arguments . We can concatenate the strings using this method and at the same time, we can format the output concatenated string. Parameter: The locale value to be applied on the format() method.4 Eki 2021