Homework Assignment #2
1. Write a short java program which will prove that either the java and (&&) or the java or (||) operation is a short circuit operation. Include all the required documentation and output that tells why the output that the user sees proves that the operation is a short circuit operation. Call your program ShortCircuitAnd.java or ShortCircuitOr.java
2. Write another short java program which will determine conclusively the default type of a numeric literal such as 123 or 1234. Again document your program internally and produce illustrative output. Call your program DefaultLiteral.java
Deliverables:
Printout of your short circuit program
Printout of your default literal program
A disk with both .java files on it along with their corresponding .class files
NOTE: make sure that the files are in the root directory of your disk and that nothing
else is on the disk. Your work should be in a labeled folder and your disk should be labeled.
Your printout should not need or have any changes handwritten on it.