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 the difference between iterator and enumeration ?

1042


Write a program to print all permutations of string?

1160


Write a java program to check if a number is prime or not?

1081


Give few difference between constructor and method?

1024


What is the use of put method?

1002


How do you trim a space in java?

1025


How do you generate random numbers in java?

1065


Write a program in java to find the maximum and minimum value node from a circular linked list.

1150


What is a generic code?

1130


Can we create constructor in abstract class ?

1113


What is java life cycle?

1046


How does linkedhashmap work in java?

1081


Write a program to find maximum and minimum number in array?

1046


What do you mean by light weight and heavy weight components?

1067


What does java edition mean?

1262