what value will be return by the read() method once it
reaches the end-of-file?
a. Throws EOException
b. Return null
c. Return -1
d. Read method return nothing, because it is void method
Answer / ash
Generally the read method reads integer and returns integer...so i think it will return -1.
| Is This Answer Correct ? | 2 Yes | 0 No |
Explain, java is compatible with all servers but not all browsers?
What is the basic of java?
Can we create more than one object singleton class?
What will happen if we write code like: try{}catch(exception e)catch(IOException i)
What is a vector in java?
Can we define a package statement after the import statement in java?
List out benefits of object oriented programming language?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
what are the difference between Java and .Net?
What is volatile data type?
what is run time polymorphism
when you will synchronize a piece of your code? : Java thread