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