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 |
What is tcp and udp?
To what value is a variable of the Boolean type automatically initialized?
What does @param args mean in java?
Is java type safe?
What are the 4 versions of java?
What do you mean by data type?
How many ways can an argument be passed to a subroutine and explain them?
What is an interoperable application in java ?
What is data string?
What is initial size of arraylist in java?
What is an inner class in java?
How do you use compareto method?