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 differences between unchecked exception, checked exception, and errors?
What do you understand by access specifiers in Java?
What is means by DLL file means ? What is the use of DLL file? What are the contents of DLL file?
How do you replace a string in java?
What is the difference between path and classpath variables?
What makes a function well defined?
What happens to the Exception object after handling an exception?
What is a protected method?
How java enabled high performance?
What are keywords in programming?
Ducking is automatic in checked exception?True or false
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }