About strings in Java help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

About strings in Java help

Hello Guys , what’s the difference between Print , printf, printIn? And when should I use them ?

21st Feb 2021, 1:44 AM
Shoug Souliman
Shoug Souliman - avatar
4 Answers
+ 6
Print - used in python to display the output Printf - used in c language to display the output Println - used in java language to display the output
21st Feb 2021, 1:47 AM
Aysha
Aysha - avatar
+ 6
visph thanks for saying. actually I was not knowing much about the java
21st Feb 2021, 1:57 AM
Aysha
Aysha - avatar
0
print: output string printf: output formatted string println: output string + new line character
21st Feb 2021, 1:47 AM
visph
visph - avatar
0
Aysha all three are available in java ;)
21st Feb 2021, 1:48 AM
visph
visph - avatar