Answers
ANSWER : HERE IS THE ANSWER FOR YOUR QUESTION:
----------------------------------------------------------------------------------------------------------------
Question 1) when we add any new method to a interface , its implementation is mandatory needed in the class that it implementing that interface .
thus , the correct option is
d) ALL The classes that implement the class interface have to add the fly method()
Question 2)
method in a interface are always public and abstract by default . so if the programmer even forget to put public keyword, compiler would add it automatically . so the correct option is:
c) both void methodname() and public void methodname() are correct ;
Question 3)
map.get("forward") would get us a object related to forwardCommand as it is sensible logic writing to have key -value pair as name matching .
so the correct option would be:
d) A forwardCommand Object
----------------------------------------------------------------------------------------------------------------
I hope this would help you out.
If you like my answer , please upvote
If you have any doubt, you can provide comment /feedback below the answer
Thanks
.