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 the is a and has a relation ship in oops concept in java?
What is bool mean?
What is the use join() in Threads ?
What's the base class of all exception classes?
What is palindrome in java?
What is mean by encoding?
where do you place after you did code in java
What is identifier with example?
What is a default package ?
What are the types of web technologies?
Which are different kinds of source code?
what is singlton class?where it is use in real time senario.