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
What is printwriter in java?
Give the difference between the println method and sqrt method?
Explain about exception propagation?
Explain scope or life time of local variables in java?
Is .net better than java?
What is the nested interface?
How an object is serialized in java?
Is zero a positive integer?
What is the purpose of garbage collection in java, and when is it used?
What is multi-catch block in java?
Explain the difference between private, public, package and protected in java?
when to use ArrayList and when to use HashMap in webApplication.
How do you remove duplicates in java?
What is overloading and overriding in java?
How do you declare a string variable?