Frequently Asked Questions

Lecture 1

Q: What is venus% in the text book? eg. 
venus% javac Hello.java
A: venus% is the operating system prompt. The command begins with javac. 
Q: Though the program HelloFromVenus.java compiles, the picture of Venus is not visible. 
A: The image file is loaded at runtime. Make sure you download the Venus.gif file form the web site. It must be present in the same directory of the .class file.

Lecture 2

Q: In Blink.java, the Math.random() method from the Math class is used. However, the import statements do not include  java.lang.*, where Math resides. Why does this work without giving a full path to the package when calling the Math class?
A: java.lang is the only package that is always imported by default.


Xiaoping Jia (xjia@cti.depaul.edu)
Last modified on 2000/01/15