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

Can we convert integer to string in java?

710


Write a method to check if input string is palindrome?

662


What does a void function return?

646


What is string syntax?

628


What is the difference between static and non-static variables in java programming?

601






Why are generics used?

615


Explain numeric promotion?

674


What is local declaration?

585


What is the structure of java?

614


Is integer immutable in java?

638


Define nashorn in java8.

668


Why can't you declare a class as protected?

693


Why are constructors used?

649


What is ellipsis in java?

691


What is append function?

655