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 |
How do you invoke a method?
How java is similar to c?
what is difference between colection and collections?
25 Answers Amdocs, IBM, Infosys, Ipog Software, Polaris, Tech Mahindra,
What is meant by singleton class?
Why Wait and notify are kept in Object class although they are used only with Thread Class
2 Answers Global Logic, Saksoft,
how an we achive multiple inhetitance in java using interface..??
Java support call by reference (pass by reference) ?
What are the advantages of exception handling in java?
What is the difference between the program and the process?
how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly?
What is string intern in java?
Can you override static methods?