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

Answer Posted / glibwaresoftsolutions

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

What is deserialization?

793


How do you use compareto in java?

736


What do you mean by formatting?

731


What is command line argument

919


What is the purpose of the enableevents() method?

777


What is overriding in java?

734


Can memory leak happen java?

777


How do generics work in java?

688


What is java instanceof operator?

784


What are the core java topics?

775


How to stop a thread in java? Explain about sleep () method in a thread?

796


What languages are pass by reference?

765


What is a constructor, constructor overloading in java?

740


How do you sort data in java?

711


What is the program compilation process?

769