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

How do you sort a set in java?

916


Can I learn java without any programming experience?

1040


What are the kinds of polymorphism?

1090


What is object-oriented programming?

1122


What are runtime exceptions?

1160


Is upper case in java?

960


Why null value is used in string?

1048


What is ascii code?

1268


What is the function of log?

1008


What is hashtable and explain features of hashtable?

989


Why declare Main() inside the class in java ?

1062


Explain the protected field modifier?

1097


Can we declare register variable as global?

931


Explain exception chaining in java?

1169


Is this valid in java ? Can we instantiate interface in java?

983