Java’s Print similarities to C

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:


For eg:

which outputs like this in C :

But in Java

which outputs like this in JAVA :

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

1 thought on “Java’s Print similarities to C”

Leave a Reply