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
How is abstraction implemented in java ?
What is the length of a string?
How can you add and remove nodes in jtree?
What are class members by default?
Outline the major features of java.
What is lazy initialization in java?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
What is r * in math?
Why java is considered dynamic?
What are the limitations of procedural programming approach?
In a container there are 5 components. I want to display the all the components names, how will you do that one?
What is the purpose of tostring() method in java?
Can we have any code between try and finally blocks?
What are the 6 functions?
What is the use of System class?