Learn Object-Oriented Programming using Java

Learn Object-Oriented Programming using Java
Lab 1, Quiz 1

Question 1:

In the lesson, we used an analogy relating a recipe to a source file. Can you come up with your own analogy for the source file?

The source file is the one like the blueprint.

Question 2:

In your own words, describe the relationship between a Java source file, a file with a .class extension, and the Java compiler.

The Java compiler converts the source file into a file with a .class extension.

A souce file is human readable.
A .class file is machine readable.

No comments yet

Leave a reply