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
Tell me about different OOPS concepts.
Explain differences between checked and unchecked exceptions in java?
What is meant by overloading?
Are global variables initialized to zero?
What is formatted output in java?
Is math an abstract class in java?
Why pointers are not used in java?
What is keyword auto for?
Name few "optional" classes introduced with java 8 ?
What are the steps involved to create a bean?
What is method overriding in java ?
What do you mean by stack?
What is the difference between yielding and sleeping in java programming?
How large is a boolean?
How to create packages in java?