Difference in the use of print, println, and printf.

Answer Posted / hr@tgksolutions.com

The items can be printed using print, println, or printf, but print prints every element while keeping the cursor in the same line. The cursor is moved to the next line via println. Additionally, we can use format identifiers with printf.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about collection interface in java?

748


Is java 9 released?

712


How do you declare an array in java?

725


What is not object oriented programming?

678


What is null mean in java?

823


how to write a program for sending mails between client and server

1784


What is difference between static and abstract class?

717


How do you reverse sort a list in java?

706


Can we serialize static variables in java?

847


What is the main advantage of passing argument by reference?

698


What is a dynamic array java?

703


Which browsers work with java?

799


Is there any sort function in java?

820


What is a substitution variable?

771


What is Classloader in Java?

807