Hi, I read that we can setproperties through setProperty(), so why the following program is incorrect?
And given the command line invocation:
java -DcmdProp=cmdValue Values
What is the result?
A. null myValue null null
B. cmdValue null null cmdValue
C. cmdValue null null newValue
D. cmdValue myValue null cmdValue
E. cmdValue myValue null newValue
F. An exception is thrown at runtime
Can anybody explain me why answer is F?