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
How do you sort a set in java?
Can I learn java without any programming experience?
What are the kinds of polymorphism?
What is object-oriented programming?
What are runtime exceptions?
Is upper case in java?
Why null value is used in string?
What is ascii code?
What is the function of log?
What is hashtable and explain features of hashtable?
Why declare Main() inside the class in java ?
Explain the protected field modifier?
Can we declare register variable as global?
Explain exception chaining in java?
Is this valid in java ? Can we instantiate interface in java?