Solved

Select an Expression to Complete the Program Segment Below, Which

Question 104

Multiple Choice

Select an expression to complete the program segment below, which is designed to read data from a file whose name is specified as the first command line argument. If no command line arguments are given, the program reads data from the default.txt file. String fileName = "default.txt";
If ( ________________________ )
{
FileName = args[0];
}
// additional statements to open file and read data


A) args > 0
B) args[0] != null
C) args.length >= 0
D) args.length > 0

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions