Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

diffrence b\w println() and printf()

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


Please Help Members By Posting Answers For Below Questions

What is an 8 bit word?

1096


What exactly is a .class file?

1095


What are green threads in java?

1052


What is a local, member and a class variable?

1086


What is the difference between array list and vector in java?

977


Will minecraft java be discontinued?

1222


Is there a case when finally will not execute?

1052


What is an object’s lock and which object’s have locks?

1011


How to instantiate member inner class?

1142


Can we have two methods in a class with the same name?

1108


What is the use of singleton?

1014


define the terminology association.

1149


What is an anonymous class in java?

1159


Why super is first line in java?

1096


When super keyword is used?

1054