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 |
How many days will it take to learn java?
What is bubble sorting in java?
Can we sort list in java?
Program to output as below formate: 1 2 3 4 5 6 7 8 9 10
Why webdriver is an interface?
What is an array length?
How can two threads be made to communicate with each other?
What is a linkedhashmap java?
Name the method that used to clear the buffer ?
Explain about procedural programming language or structured programming language and its features?
When you declare a method as abstract method ?
which class is the wait() method defined in? : Java thread