1. Difference between usage of BaseAdapter and ArrayAdapter?
BaseAdapter is an abstract adapter. You have to do a bit more coding yourself to get it working. CursorAdapter & ArrayAdapter, both of these extend BaseAdapter. ArrayAdapter is a more complete implementation that works well for data in arrays. CursorAdapter is a more complete implementation that works well for data in a Cursor.
2. Iterator vs ListIterator? [ Ans... ]
ListIterator can traverse the collection in both directions by using the next() and previous() methods, find the index of the next or previous element of the collection by using the nextIndex() or previousIndex() methods, add a new element to any position in the collection by using add(E e) method and remove an element from any position in the collection by using remove(E e) method.
Other Sources
1. https://www.toptal.com/android#hiring-guide
BaseAdapter is an abstract adapter. You have to do a bit more coding yourself to get it working. CursorAdapter & ArrayAdapter, both of these extend BaseAdapter. ArrayAdapter is a more complete implementation that works well for data in arrays. CursorAdapter is a more complete implementation that works well for data in a Cursor.
2. Iterator vs ListIterator? [ Ans... ]
ListIterator can traverse the collection in both directions by using the next() and previous() methods, find the index of the next or previous element of the collection by using the nextIndex() or previousIndex() methods, add a new element to any position in the collection by using add(E e) method and remove an element from any position in the collection by using remove(E e) method.
Other Sources
1. https://www.toptal.com/android#hiring-guide
No comments:
Post a Comment