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

0 Answers   Wipro,


Which list does not allow duplicates in java?

0 Answers  


What is difference between pointer and reference?

0 Answers  


Why array is used in java?

0 Answers  


What is the difference between the synchronized() & static synchronized()?

2 Answers   HP, SparkTG,






What do you understand by java?

0 Answers  


What occurs when an object is constructed?

0 Answers  


What is the full name of java?

0 Answers  


What is numeric promotion?

1 Answers  


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?

0 Answers   Aspire, Infogain,


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.

2 Answers  


Categories