Home / MCQ Bank / Computer
Computer Input Output

What will be the output of the following Java program? import java.io.*; class filesinputoutput { public static void main(String args[]) { InputStream obj = new FileInputStream("inputoutput.java"); System.out.print(obj.available()); } } Note: inputoutput.java is stored in the disk.

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • prints number of bytes in file

Related Computer Questions

What will be the output of the following C++ code? #include<iostream> using namespace std; int main() { int a = 5; auto check = [=]() { a = 10; }; check(); cout<<"Value of a: "<<a<<endl; return 0; } What will be the output of the following Python code? import re s = "A new day" m = re.match(r'(.*)(.*?)', s) print(m.group(2)) print(m.group(0)) Keyboard used with personal Computer have___________keys? Title bar, ribbon, status bar, views and document workspace are components of ______ program. ____________ property defines whether table cell borders are connected or separate.