Given:
What is the expected result of javac?
A. javac fails to compile the class and prints the error message, C:workspace4Mycar.java:1:error: package java does not exist
B. javac compiles Mycar.java without errors or warnings.
C. javac fails to compile the class and prints the error message, C:workspace4Mycar.java:1:error: expected import java.lang
D. javac fails to compile the class and prints the error message, Error: Could not find or load main class Mycar.class
Answer: B
Main method need for launch: java Mycar