Quiz 1: Java Essentials
Create a class called LongIntegerQuiz
under the main algebraic
package that extends the LongInteger
class.
Override the addDifferentSign()
method so that the add()
method in LongIntegerQuiz
can handle integers with different signs.
Create the LongIntegerQuizTest
class under the test algebraic
package.
Test the correctness of your LongIntegerQuiz
using the unit tests.
Add more tests for a more thorough assessment if necessary.
What is the advantage of using Generics?
How do you make the class you define comparable?
What is the advantage of overriding member methods in the Object class?
What kind of methods should be defined as static?
1. Commit and push everything under the following packages to your GitHub repository:
2. Submit answers to the above quizzes to Canvas.