Difference in the use of print, println, and printf.
Answer Posted / nashiinformaticssolutions
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 r * in math?
How to create an interface?
What is boolean false?
Name some classes present in java.util.regex package.
What is difference between jdk,jre and jvm?
How is it possible for two string objects with identical values not to be equal under the == operator?
What are the different types of garbage collectors in java?
Why are generics used?
Is java platform independent?
What is use of super keyword?
What is JVM and is it platform independent?
What is the use of StringTokenizer class?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
Why do we use string?
What is structure of java heap? What is perm gen space in heap?