Can an interface be instantiated?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at Stanford University, Lives in Palo Alto, CA
The quick answer would be --No--. you can never instantiate a interface in java however, you can refer to an object that implements an interface by the type of the interface.Dec 5, 2017
2023-06-15 06:42:32
评论(499)
Helpful(122)
Helpful
Helpful(2)

Lucas Harris
QuesHub.com delivers expert answers and knowledge to you.
The quick answer would be --No--. you can never instantiate a interface in java however, you can refer to an object that implements an interface by the type of the interface.Dec 5, 2017