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??



my method "abc" return array of interface "xyz" and "pqr" is abstrac..

Answer / 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

More Core Java Interview Questions

What are the differences between unchecked exception, checked exception, and errors?

2 Answers  


What do you understand by access specifiers in Java?

0 Answers   Genpact,


What is means by DLL file means ? What is the use of DLL file? What are the contents of DLL file?

4 Answers  


How do you replace a string in java?

0 Answers  


What is the difference between path and classpath variables?

0 Answers  


What makes a function well defined?

0 Answers  


What happens to the Exception object after handling an exception?

0 Answers  


What is a protected method?

0 Answers  


How java enabled high performance?

0 Answers  


What are keywords in programming?

0 Answers  


Ducking is automatic in checked exception?True or false

2 Answers  


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

0 Answers   HCL,


Categories