can you create interface instance ?

Answer Posted / swati

we can't create instance of an interface..
but we can create reference of interface, which can refer
to upcoming object of the class who implements that
interface..

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are data types in programming?

776


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

780


What do you mean by platform independence? What is an interface?

809


What are abstract classes and anonymous classes?

869


What is java util?

804


Explain with example the concept of constant variable in java.

896


What does microservices mean?

725


What is final variable?

710


What are the different approaches to implement a function to generate a random number?

821


Define "Access specifiers" in java.

955


What is getclass () getname () in java?

902


What are the procedures?

845


What is isa relationship?

766


Why local variables are stored in stack?

738


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

753