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
what is use of functional interface in java 8?
What is use of map in java?
How to sort an array from smallest to largest java?
What is the difference between @before and @beforeclass annotation?
what is the difference between a threads start() and run() methods? : Java thread
why doesn't java run on all platforms?
Can a final variable be null?
what is nested class in java?
How do you access command-line arguments within the code?
Why string is called as immutable?
Can long be null in java?
What is the internal implementation of set in java?
Can we compare two strings in java?
What is a singleton in genetics?
What is the purpose of file class?