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

any other way to print the text without using
System.out.println() in java?

Answer Posted / srinivas

Using PrintWriter class-

PrintWriter writer = new PrintWriter(System.out);
writer.println("Method 2");



PrintWriter makes the output internationalizable - because encodings like UTF-8 can be specified.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is try-with-resources in java?

1100


What do you mean by compiler?

984


What is a memory leak in java?

1014


How does the java compiler work?

909


What is boolean flag in java?

1033


Why java is said to be pass-by-value ?

980


What are strings in physics?

958


How do you use parseint in java?

935


What does microservices mean?

892


What is string args [] in java?

972


What is the difference between private & public & friendly classes?

1015


Why do we need hashmap in java?

1027


What is the purpose of sizeof operator?

977


How many tetrahedral voids are there in bcc?

1010


Differences between external iteration and internal iteration?

1086