a) clear() b) flush() c) fflush() d) close() ...
View QuestionWhich of these data type is returned by every method of OutputStream?
a) int b) float c) byte d) none of the mentioned
View QuestionWhich of these method of InputStream is used to read integer representation of next available byte input?
a) read() b) scanf() c) get() d) getInteger() Answer: a Explanation: read()
View QuestionWhich of these class is used to read and write bytes in a file?
a) FileReader b) FileWriter c) FileInputStream d) InputStreamReader Answer: c Explanation: FileInputStream
View QuestionWhich of these classes is used for input and output operation when working with bytes?
a) InputStream b) Reader c) Writer d) All of the mentioned Answer: a Explanation: ...
View Question
What will be the output of the following Java code?
import java.io.*;
class files
{
public static void main(String args[])
{
File obj = new File(“/java/system”);
System.out.print(obj.getName());
}
}
What will be the output of the following Java code? import java.io.*; ...
View QuestionWhich of these is method for testing whether the specified element is a file or a directory?
a) IsFile() b) isFile() c) Isfile() d) isfile() Answer: b Explanation: isFile() returns true ...
View QuestionWhich of these is specified by a File object?
a) a file in disk b) directory path c) directory in disk d) none of the mentioned Answer: c
View QuestionWhich of these class is not related to input and output stream in terms of functioning?
a) File b) Writer c) InputStream d) Reader Answer: a Explanation: A File describes properties of a file, a ...
View QuestionWhich of these interface is not a member of java.io package?
a) DataInput b) ObjectInput c) ObjectFilter d) FileFilter Answer: c Explanation: ObjectFilter
View Question