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 quick sort in java?
Do we have pointers in java?
Is string is a data type?
What is the loop in java?
Differentiate between a constructor and a method? Can we mark constructors final?
When is the garbage collection used in Java?
Is there a sort function in java?
What is the finalize method do?
What do you understand by the term singleton?
What is the difference between static and non-static variables in java programming?
Is integer immutable in java?
What is local declaration?
What is garbage collector?
What is use of inner class in java?
What is indexof in java?