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 the difference between iterator and enumeration ?
Write a program to print all permutations of string?
Write a java program to check if a number is prime or not?
Give few difference between constructor and method?
What is the use of put method?
How do you trim a space in java?
How do you generate random numbers in java?
Write a program in java to find the maximum and minimum value node from a circular linked list.
What is a generic code?
Can we create constructor in abstract class ?
What is java life cycle?
How does linkedhashmap work in java?
Write a program to find maximum and minimum number in array?
What do you mean by light weight and heavy weight components?
What does java edition mean?