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
What is an 8 bit word?
What exactly is a .class file?
What are green threads in java?
What is a local, member and a class variable?
What is the difference between array list and vector in java?
Will minecraft java be discontinued?
Is there a case when finally will not execute?
What is an object’s lock and which object’s have locks?
How to instantiate member inner class?
Can we have two methods in a class with the same name?
What is the use of singleton?
define the terminology association.
What is an anonymous class in java?
Why super is first line in java?
When super keyword is used?