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...

Difference in the use of print, println, and printf.

Answer Posted / glibwaresoftsolutions

The items can be printed using print, println, or printf, but print prints every element while keeping the cursor in the same line. The cursor is moved to the next line via println. Additionally, we can use format identifiers with printf.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is printwriter in java?

955


Give the difference between the println method and sqrt method?

1085


Explain about exception propagation?

1034


Explain scope or life time of local variables in java?

1027


Is .net better than java?

1014


What is the nested interface?

1108


How an object is serialized in java?

988


Is zero a positive integer?

1064


What is the purpose of garbage collection in java, and when is it used?

1041


What is multi-catch block in java?

1079


Explain the difference between private, public, package and protected in java?

1044


when to use ArrayList and when to use HashMap in webApplication.

4707


How do you remove duplicates in java?

1019


What is overloading and overriding in java?

1229


How do you declare a string variable?

1017