As we know that java is made by the C programming. The java has many common features to C language. While we wants to print in java we usually use the following code.

But there is also the feature of printf in java which we used to do in C programming:

Syntax:

For eg:

which outputs like this in C :
c-out

But in Java

which outputs like this in JAVA :
c-out

Some of the more commonly used conversion symbols in java Print Stream printf() are as follows:
java-print