Answer Posted / dhawal
answer no 1. is correct programatically but actually
instantiates means obtain the behavier of object we can do
this only by creating object of class ,object has state and
behaviour, in answer 1,we transfer state first and then
write behaviour in the class,then instantiate that class ie
like dynamic method dispatch.means therotically we can not
instantiate Interfaces
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are parsing rules?
what is the difference between future and callable interface in java?
What are the differences between wait() and sleep()?
What is a map? What are the implementations of map?
What is the purpose of garbage collection in java, and when is it used?
Why is stringbuffer not immutable?
Is void a keyword in java?
How would you format a date in java? I.e. In the ddmmyyy format?
what is server side caching?
What is lifetime variable?
What is meant by string is immutable?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
What are inbuilt functions in java?
Can interface be private in java?
How to sort list of list in java?