The following code is an example of the use of __ if (message instance of Loan R
ID: 3841319 • Letter: T
Question
The following code is an example of the use of __ if (message instance of Loan Request) {} a. Java Reflections b. Encapsulation c. Polymorphism d. Abstraction Assume that myLst is an ArrayList. Collections.shuffle(mylst) will __ a. Randomize the elements in myLst. b. Randomize the elements in myLst and return the first item. c. Randomize the first 100 elements in myLst. d. Answers a & b Consider the following code (syntax is valid): public class Program {boolean value = true; public boolean Is True () {if (value == true) return true; else if (value == false) return false;}} The method Is True() will: a. Return boolean value 'true' b. This class will not compile c. This will fail at runtime d. Return boolean value 'false' Consider the following two methods: private static int max(int numl, int num2) {} private static int max(int num1, int num2, int num3) {} This is an example of a. Overloading b. Overriding c. Abstraction d. Information hiding __ is a list of privileges or objects the user has access. a. Authorization b. Authentication c. Membership d. Profile Class 3 can extend Class A. Can Interface J extend Interface I? a. Yes b. NoExplanation / Answer
1) C , POLYMORPHISM.
2) A . RANDOMIZE THE ELEMENTS IN MYLST.
3) B. THIS CLASS WILL NOT COMPILE.
4) A. OVERLOADING.
5) A. AUTHORIZATION.
6) A . YES.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.