Styrow.dev
Question 181 of 247
Java Topic: General medium

Can we instantiate an interface?

Question

Can we instantiate an interface?

Answer

You can’t instantiate an interface directly, but you can instantiate a class that implements an interface.