What is the result?

Given: And given the commands: javac Test.Java Java Test Hello What is the result?

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



Leave a Reply 6

Your email address will not be published. Required fields are marked *


TC

TC

Answer is B. Failure

Kaykay

Kaykay

Definitely Option B.

JavaNooB

JavaNooB

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

Tomas

Tomas

Answer: B
Tested