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

How can you take string into InputStream?

Answer Posted / sudhakar p

Step 1: Convert String to byte array

Step 2: Create a ByteArrayInputStream passing bytes[] to to
the contructor

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain java coding standards for interfaces?

1162


What is difference between static variable and global variable?

1112


Why we do exception handling in java and how many types of exceptions are there?

1177


Differentiate between overriding and overloading cases?

1162


What is java argument list?

979


Can you write a java class that could be used both as an applet as well as an application?

1000


Explain jdk, jre and jvm?

1013


What is the simpletimezone class in java programming?

1164


What is the benefit of singleton pattern?

1044


Explain about anonymous inner classes in java?

1139


What does a void function return?

1060


Explain what access modifiers can be used for methods?

1120


Why declare Main() method as a static in java ?

1122


What is character in data type?

1006


What are the advantages of java inner classes?

1110