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 is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

562


What is ternary operator?

568


In a container there are 5 components. I want to display all the component names, how will you do that?

1559


What is string pool in java?

563


What is the longest unicode character?

694






What is the difference between JVM and JRE?

622


Why heap memory is called heap?

588


Which one will take more memory: an int or integer?

773


Define how does a try statement determine which catch clause should be used to handle an exception?

586


What does the append?

495


what is meant by Garbage collection?

619


What are the advantages and disadvantages of reference counting in garbage collection?

575


What are the features of java?

533


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

519


What is the use of using enum to declare a constant?

558