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 Posted / 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 |
Post New Answer View All Answers
Explain all java features with real time examples
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator
Explain different states of a thread in java?
How many types of gc are there in java?
What is class array in java?
What is runtime locatable code?
can I implement my own start() method? : Java thread
What about instanceof operator in java?
Is vector ordered in java?
How would you dynamically allocate memory to an array?
how to run ecllipse with jettyserver for windows environment using batch file
When object is created and destroyed?
What are the types of exceptions?
How do you sort a set in java?
What function extracts specified characters from a string?