In Java, the precision specifier is used to formatting floating-point values. It can also be used fore string length.