MCIT 591 Final Exam | Questions with 100% Correct Answers | Verified | Latest Update 2024
What is the method signature for the main method of a Java program? - main(String[] args) What is overloading? - two methods that have the same name but different method signatures What is overriding? - 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() - 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? - Yes! the only time it couldn't ( as far as I know) is when the method is private 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 !
Document information
- Uploaded on
- December 1, 2023
- Number of pages
- 4
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers