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



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

Answer / 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

More Core Java Interview Questions

Can you access non static variable in static context?

0 Answers  


How to access a variable if it is declared as private?

3 Answers  


Which object oriented concept is achieved by using overloading and overriding?

0 Answers  


Where to store local variables?

0 Answers   Aspiring Minds,


What are different data types?

0 Answers  






What is the purpose of default constructor?

0 Answers  


When do we use synchronized methods in java?

0 Answers  


What are different types of expressions?

0 Answers  


what is default constructor and parameterised constructor with example?

1 Answers   KPIT,


What is the purpose of void?

0 Answers  


what is the need of the Ajax?

5 Answers   iFlex,


What is local declaration?

0 Answers  


Categories