The disadvantage(s) of using an ArrayList instead of an array include: a. an Arr
ID: 3844309 • Letter: T
Question
The disadvantage(s) of using an ArrayList instead of an array include: a. an Array List is less efficient than an array b. an Array List doesn't use an intuitive notation such as square brackets to access elements C. an ArrayList cannot store data elements of a primitive type d. all of the above An interface may contain: a. private variables b. global variables c. final variables (constants) d. instance variables Marking the Node class private in a linked list data structure is an example of a. inheritance b. encapsulation c. polymorphism d. abstractionExplanation / Answer
28 Ans) b
Explanation:- To access elements of an arraylist we have to use 'get' method on arraylist
29 Ans) b,c,d
Explanation:- Private variables are not allowed in interfaces. But it is advisable to use only constants in interfaces.
30 Ans) b
Explanation:- Encapsulation is a property of object oriented programming by which we encapsulate the data in the class.
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.