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

What happens if an exception is not handled in a program?

626


What are the 6 functions?

518


What are the advantages of functions?

524


What are packages in java?

568


What is gui programming?

524






Can we able to pass objects as an arguments in java?

536


What is a local class in java?

589


How to print an arraylist in java?

504


When should I use singleton?

523


what r advatages of websphere? & how to deploy?

1640


What is the abstract class?

599


List some important characteristics on jre

596


Explain about exception propagation?

589


What is an example of a keyword?

550


what is object slice?

1578