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 threaded programming and when is it used? : Java thread
what is bmg file and how to create that files?what will it contailn?
What is the difference between path and classpath variables?
Why is multiple inheritance not supported in java?
What is downcasting?
How do you implement singleton class?
Write a program to search a number in the given list of numbers.
describe method overloading
Can we override the static methods?
Can you instantiate the math class?
Can we overload destructor in java?
What are the data types supported by java?
Explain access specifiers?
What is use of functional interface in java 8? Explain
What is broken and continue statement?