Under what circumstances an object reference be cast to an
interface reference?

Answer Posted / debapriya maity

Exactly whenever ur entity passed the IS-A Test ,

A is B :)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is int argc char * argv?

565


What is the generic function?

528


What are user defined exceptions?

587


What does indexof return in java?

533


List some java keywords sun like c, c + + keywords?

585






What are java threads?

615


What is class and its types?

536


explain the difference between jdk and jvm?

557


How to sort an unsorted array in java?

608


What is module with example?

510


Is string serializable in java?

538


Can we override static methods in java?

581


What is the purpose of file class?

543


What is java string pool?

539


What is java’s garbage collected heap?

531