what is diffrence between print() and println() ?
Both Method are used to display the result on the monitor .print() method displlay the result and then retains the cursor in the same line , next to the end of the result .println() method display the result the cursor to the next line.

Akkiraju IvaturiPosted Aug 24, 2012, 1:13 PM
Santhosh Kumar JayaramanPosted Aug 24, 2012, 9:06 AM
where as print prints on the same line.
Eg:
System.out.print( "test");
System.out.print( "test");
The out put will be "testtest" in same line
But if you println
System.out.println( "test");
System.out.println( "test");
the out put will be in 2 lines
test
test