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

Answer Posted / nashiinformaticssolutions

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 are strings in physics?

630


Difference between Linked list and Queue?

693


what is object-oriented programming in java?

683


Can we access the non-final local variable, inside the local inner class?

621


How we create object in copy constructor?

733






How transient variable is different from volatile variable?

648


How many bytes is double?

629


define the terminology association.

725


What do you mean by local variable and instance variable?

604


What does those terms actually mean included in the j.d.k i.6?

1695


What is the difference between equals() and == in java?

596


Which is easier .net or java?

743


How many bytes is string in java?

728


if u open login & logout ,how can udisplay the timelogin & logout members ?

1846


How do you remove an element from an arraylist in java?

548