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 the characteristics of Final,Finally and Finalize keywords.

913


How will you add panel to a frame?

836


what is meant by Garbage collection?

814


Which command from the jdk compiles a java program?

661


What is the use of predicate in java 8?

676


Can we have multiple classes in a single file?

704


Does a class inherit the constructors of its superclass in java programming?

726


I want to store more than 10 objects in a remote server? Which methodology will follow?

2861


What are advantages of using Java?s layout managers than windowing systems?

2060


What does opcode mean?

761


what do you mean by java annotations?

759


When can an object reference be cast to an interface reference in java programming?

756


What does it mean to flush a file?

776


What is difference overloading and overriding?

785


What is the difference between Java1.4 and Java1.5

2042