my method "abc" return array of interface "xyz"
and "pqr" is abstract class implements abc
and class "jkl" extends pqr
My problem
1) when i call abc it retrun array xyz how can i do this
hint
xyz refer_xyz = new jkl();
but i can't create array.
2)I want to access method of jkl using reference of xyz??
Answer Posted / guest
ur public abstract class qpr implements xyz not abc
becoz abc is method
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are 3 data types?
how we can create packages in java?
What is binary search in java?
What ide should I use for java?
What are Normalization Rules? Define Normalization?
Can keyword be used as identifier?
Is singleton a bad practice?
what is anonymous class in java?
What are the different access modifiers available in java?
Why stringbuilder is not thread safe in java?
What is a pattern what is an anti pattern?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
Explain methods specific to list interface?
What is difference between wait and notify in java?
Is null == null in java?