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 |
Do extraneous variables affect validity?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
Which One is optimal to choose ? Syncronized hash map or Hash table with single thread model? How can a hash map syncronized with out using syncrozed blocks in programm?
Is char a method in java?
What is output buffer?
What is the use of beaninfo?
what do you understand by synchronization? : Java thread
How do you detect memory leaks?
What is the difference between access specifiers and access modifiers in java?
Name few java.lang classes introduced with java 8 ?
Difference between String and String Buffer?
What are basic keywords?