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 are methods of a class?
What is a layout manager and what are different types of layout managers available in java awt?
What steps are taken when the OS shifts from one-thread execution to another?
Write a program based on Java script program.
What is final modifier?
Why Java doesn’t support multiple inheritance?
What does split function do in java?
Is linkedlist thread safe in java?
What is predicate in java?
What are the advantages of assembly language?
What are the new features in java 8?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
How do we access static members in java?
Explain the scope of a variable.
What is module in oop?