Answer Posted / himanshu gupta
String str="";
int i=0
InputStream in=new FileInputStream("File url");
while((i=in.read())!=-1)
{
str=str+(char)i;
}
System.out.println(str);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is an object’s lock and which object’s have locks?
How are this() and super() used with constructors in java programming?
What are desktop procedures?
What do bitwise operators do?
What is JVM and is it platform independent?
Can you call a method on a null object?
What is private protected in java?
What are the two basic ways in which classes that can be run as threads may be defined?
What are synchronized methods ?
What is covariant return type?
What is byte data type?
Differentiate between nested and inner class in java.
What are examples of modifiers?
How dead lock situation occurs in java and how you can identify it?
What are encapsulation, inheritance and polymorphism?