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 / guest
ur public abstract class qpr implements xyz not abc
becoz abc is method
Is This Answer Correct ? | 2 Yes | 0 No |
What are the Class Libraries ?
Which list does not allow duplicates in java?
What is difference between pointer and reference?
Why array is used in java?
What is the difference between the synchronized() & static synchronized()?
What do you understand by java?
What occurs when an object is constructed?
What is the full name of java?
What is numeric promotion?
Howmany address lines are required to addressing 1 MB memory?
8 Answers Beatroot Technologies, CSC, HCL, Hexaware, IBM,
How can I right-justify a string?
We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.