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 method overloading in JAVA? Why is it not present in C ?
Explain how to force the garbage collection in java.
What is javac used for?
Explain jdk, jre and jvm?
Can we extend a class with private constructor?
Explain working of call by reference function invoking.
What is the structure of java?
What does opcode mean?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
make a method which any number and any type of argument and print sum of that arguments.....
please send me hr interview questions in it industry
What is difference between module and function?
Explain static nested classes ?
If two threads have same priority which thread will be executed first ?
What is super?