MCIT 591 Final Exam 2025 UPDATE|
COMPREHENSIVE QUESTIONS AND VERIFIED
ANSWERS (COMPLETE SOLUTIONS) GUARANTEED
SUCCESS |GRADE A+!! (100% ACCURATE) GET IT
RIGHT!!
What is the method signature for the main method of a Java program? -
(ANSWER)main(String[] args)
What is overloading? - (ANSWER)two methods that have the same name but
different method signatures
What is overriding? - (ANSWER)Declaring a method in a sub class which is already
present in the parent class in order to make the method more specialized to that
sub class
True or False, assertEquals uses .Equals() - (ANSWER)True
If you have a child class that is extended a parent class, and that parent class has a
protected method, can the child class utilize that method? - (ANSWER)Yes! the
only time it couldn't ( as far as I know) is when the method is private
What is cohesion? - (ANSWER)similar tasks should be in the same class
What is coupling? - (ANSWER)interaction between two classes should be kept
low
, What does DRY mean? - (ANSWER)Do not repeat yourself !
Method Signature - (ANSWER)name of the method and the method parameters
along with their data types
Polymorphism - (ANSWER)principle that allows the same method to exist in
different forms
Why do we utilize polymorphism? - (ANSWER)-Because it allows us to provide
similar code in two or more similar forms
-It is important to make code DRY
What is an Interface? - (ANSWER)a collection of methods
Why would you use an interface? - (ANSWER)-you write an interface when you
want classes of various types to all have a certain set of capabilities
-it helps keep your code DRY
What is Inheritance? - (ANSWER)-When a subclass receives its methods and
instance variables from a larger parent class
-This results in the code being even more DRY
COMPREHENSIVE QUESTIONS AND VERIFIED
ANSWERS (COMPLETE SOLUTIONS) GUARANTEED
SUCCESS |GRADE A+!! (100% ACCURATE) GET IT
RIGHT!!
What is the method signature for the main method of a Java program? -
(ANSWER)main(String[] args)
What is overloading? - (ANSWER)two methods that have the same name but
different method signatures
What is overriding? - (ANSWER)Declaring a method in a sub class which is already
present in the parent class in order to make the method more specialized to that
sub class
True or False, assertEquals uses .Equals() - (ANSWER)True
If you have a child class that is extended a parent class, and that parent class has a
protected method, can the child class utilize that method? - (ANSWER)Yes! the
only time it couldn't ( as far as I know) is when the method is private
What is cohesion? - (ANSWER)similar tasks should be in the same class
What is coupling? - (ANSWER)interaction between two classes should be kept
low
, What does DRY mean? - (ANSWER)Do not repeat yourself !
Method Signature - (ANSWER)name of the method and the method parameters
along with their data types
Polymorphism - (ANSWER)principle that allows the same method to exist in
different forms
Why do we utilize polymorphism? - (ANSWER)-Because it allows us to provide
similar code in two or more similar forms
-It is important to make code DRY
What is an Interface? - (ANSWER)a collection of methods
Why would you use an interface? - (ANSWER)-you write an interface when you
want classes of various types to all have a certain set of capabilities
-it helps keep your code DRY
What is Inheritance? - (ANSWER)-When a subclass receives its methods and
instance variables from a larger parent class
-This results in the code being even more DRY