Can we instantiate Interfaces?

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


Please Help Members By Posting Answers For Below Questions

In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

843


Explain java coding standards for interfaces?

636


What is a treeset in java?

549


What is the difference between member variables initialization and assignment in a constructor?

669


What are default methods ?

583






How do you change an int to a string?

551


Which is illegal identifier in java?

592


What do you mean by pointer value and address?

581


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

714


What is used of static keyword in java?

594


Where is stringbuffer stored?

553


What is main in java?

516


What are the 7 types of characters?

568


Why java strings are immutable in nature?

596


What are local variables?

599