Answer Posted / vidya sarode
println prints on a new line, where as print prints on the
same line.
For example, in your program you use "print" to print the
word "Detroit" and then you use "print" again to
print "smells" the output would be:
Detroitsmells
If you use "print" to print "Detroit" and then you
use "println" to print "smells" your output would be:
Detroit
smells
| Is This Answer Correct ? | 33 Yes | 12 No |
Post New Answer View All Answers
Can we serialize singleton class?
Which java ide is used the most?
Does list allow duplicates in java?
What is the Scope of Static Variable?
What is r in java?
Is logger a singleton?
What are different types of encoding?
What is the use of 'super' keyword inside a constructor?
Why is stringbuffer faster than string?
What is the difference between preemptive scheduling and time slicing in java programming?
Why are lists ordered in java?
What is general methodology?
Why we override equals() method?
How do you end a program?
What is definition and declaration?