Given: And given the commands: javac Test.Java Java Test Hello What is the result?
A.
Success
B.
Failure
C.
Compilation fails.
D.
An exception is thrown at runtime
Given: And given the commands: javac Test.Java Java Test Hello What is the result?
A.
Success
B.
Failure
C.
Compilation fails.
D.
An exception is thrown at runtime
B.
Failure
Answer is B. Failure
Definitely Option B.
C:
Compilation Fails
javac Test.Java
error: Class names, ‘Test.Java’, are only accepted if annotation processing is explicitly requested
1 error
Need to change to lowercase j
javac Test.java
Answer: B
Tested
b