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
In java, what is the difference between method overloading and method overriding?
Can you sort a string in java?
What is a method type?
What are the six ways to use this keyword?
What is constant in programming?
What is append in java?
How do generics work?
What is finalize method?
Is 0 a real number?
What are the access modifiers in java?
Explain the importance of finally over return statement?
What about method local inner classes or local inner classes in java?
How do you implement tree mirroring in java?
What is an object's lock and which object's have locks in java programming?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?