MCIT 591 Final Exam 2025 UPDATE|
COMPREHENSIVE QUESTIONS AND VERIFIED
ANSWERS (COMPLETE SOLUTIONS)
GUARANTEED SUCCESS |GRADE A+!! (100%
ACCURATE) GET IT RIGHT!!
Save
Terms in this set (39)
What is the method main(String[] args)
signature for the main
method of a Java
program?
two methods that have the same name but different
What is overloading?
method signatures
Declaring a method in a sub class which is already
What is overriding? present in the parent class in order to make the
method more specialized to that sub class
True or False, assertEquals True
uses .Equals()
If you have a child class Yes! the only time it couldn't ( as far as I know) is when
that is extended a parent the method is private
class, and that parent class
has a protected method,
can the child class utilize
that method?
https://quizlet.com/1058437483/mcit-591-final-exam-2025-update-comprehensive-questions-and-verified-answers-complete-solutions-guaranteed-suc… 1/5
, 7/4/25, 6:15 AM MCIT 591 Final Exam 2025 UPDATE| COMPREHENSIVE QUESTIONS AND VERIFIED ANSWERS (COMPLETE SOLUTIONS) GU…
What is cohesion? similar tasks should be in the same class
What is coupling? interaction between two classes should be kept low
What does DRY mean? Do not repeat yourself !
name of the method and the method parameters
Method Signature
along with their data types
principle that allows the same method to exist in
Polymorphism
different forms
-Because it allows us to provide similar code in two or
Why do we utilize
more similar forms
polymorphism?
-It is important to make code DRY
What is an Interface? a collection of methods
-you write an interface when you want classes of
Why would you use an
various types to all have a certain set of capabilities
interface?
-it helps keep your code DRY
-When a subclass receives its methods and instance
What is Inheritance? variables from a larger parent class
-This results in the code being even more DRY
What is the syntax of class<Child> extends <Parent>
Inheritance?
in any line of code, a class can always be replaced by
Liskov Substitution
one of its subclasses. An interface can always be
Principle
replaced by some implementation of that interface
How would we tell if a -If it has an "is a" relationship
class is a child or parent? -Example) Goalkeeper "is a" Player
What is the syntax to call Do "super.nameOfVariable"
an instance variable from
the parent class, in the
child class?
Which type of casting is Upcasting is legal
legal?
https://quizlet.com/1058437483/mcit-591-final-exam-2025-update-comprehensive-questions-and-verified-answers-complete-solutions-guaranteed-suc… 2/5