Under what circumstances an object reference be cast to an
interface reference?
Answers were Sorted based on User's Feedback
Answer / muthusenthil
when a class implements an interface then an object
referance of that class can be casted to interface referance
class A implements B{
public static void main(String args[]){
B b=new A();
}
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / janet
When the object implements the referenced interface, an
object reference be cast to an interface reference.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / debapriya maity
Exactly whenever ur entity passed the IS-A Test ,
A is B :)
Is This Answer Correct ? | 1 Yes | 0 No |
A abstract class extending an abstract class.Super class has both abstract and non-abstract methods.How can we implement abstract and non-abstract mehtods? Explain with snippet
What is a layout manager and what are different types of layout managers available in java awt?
what is difference between global methods and local methods?
Why map is used in java?
Is node a data type in java?
Difference between a Scrollbar and a ScrollPane?
What is abstraction in java?
0 Answers Akamai Technologies,
Can a boolean be null java?
What is difference between path and classpath variables?
When is the arraystoreexception thrown?
Can a class extend more than one class?
Difference between array and arraylist.
23 Answers Arise Solution, Banca Sella, iFocus, NIC, Sai Softech, Solartis, TCS, Verizon,