Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| |||||||||||
| Interview Questions and Answers - Order By Rating | |||||||||||
| |||||||||||
| Ans. Abstract means that the class is only meant to be subclassed whereas final means that it cannot be subclassed so both concepts - abstract and final are actually mutually exclusive and hence not permitted together. | |||||||||||
| |||||||||||
| Ans. As Class B has been declared abstract , we can either implement any of these methods and just declare rest of them abstract. | |||||||||||
| Ans. It is an unmodifiable / read only view of the underlying collection. We can use Collections.unmodifiableSet(Set set) Collections.unmodifiableMap(Map map) Collections.unmodifiableCollection(Collection collection) | |||||||||||
| |||||||||||
| Ans. It should either implement the abstract methods or re-declare them abstract. | |||||||||||
| |||||||||||
| |||||||||||
| |||||||||||
| |||||||||||
| |||||||||||
| |||||||||||
| |||||||||||
| |||||||||||