Answered step by step
Verified Expert Solution
Question
1 Approved Answer
16. Suppose a Colleague's app you encounter: compare(greenFrog, RedFrog); Which is most likely being used: a. Comparable b. Comparable c. Comparator d. Comparator e. both
16. Suppose a Colleague's app you encounter: compare(greenFrog, RedFrog); Which is most likely being used:
a. Comparable
b. Comparable
c. Comparator
d. Comparator
e. both a & b
f. both c & d
17. Which is a valid way to compare two frog objects, refernced by frog1 and frog2?
a. frog1.compare(frog2)
b. frog1.compareTo(frog2)
c. frog1
d. frog1
e.both a & b
f. both c & d
20. to enhance app security, we keep private _______ variables hidden from external access.
a. static
b. protected
c. package
d. constant
e. abstract
f. refrence
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started