Wednesday, 7 September 2011

Use of printf in java

Do you know that printf() is possible in Java? Yes, this is possible to write printf() in java but this is supports only in jdk 1.5 onwards as like jdk 1.6,jdk1.7.
you can write any program with using printf() as like:

public class Use
{
public static void main(String args[])
{
System.out.printf("This is my experience");
}
}



Note:-printf() and print() are nearly same.