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 the purpose of nested class in java?
I want to persist data of objects for later use. What is the best approach to do so?
How to perform selection sort in java?
Do you need to import math in java?
How many types of the indexof method are there for strings?
Describe the various concepts related to object oriented programming (oop).
Can we override data members in java?
Can we use string in the switch case?
What is java literals?
What are the different types of garbage collectors in java?
Is singleton class immutable?
What are 5 boolean operators?
Can static method access instance variables ?
What does the append?
Why is the main method declared static?