boolean remove(Object element) & boolean add(Element element)in java
<p>Q1)Is it possible that element is found but can't be removed or is not removed from the collection and hence a false is returned by the method?? If yes what can be the possible reasons or causes.
Q2)In add method it says it guarantees that the requested element will exist in the collection
after the method call completes but what if the collection is not modifiable and it does not contain the element requested to be added ,will it show a compile time error or an exception will be thrown at runtime or a false will be returned? Please give relevant answers.</p>
