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

Is assembly language a low level language?

0 Answers  


What is the purpose of the file class in java programming?

0 Answers  


What modifiers are used with an inner class which is a member of an outerclass?

1 Answers  


How many times finalize method will be invoked? Who invokes finalize() method in java?

0 Answers  


How do you use equal in java?

0 Answers  






Is multiple inheritance allowed in Java? Why ?

7 Answers  


How do you calculate square roots?

0 Answers  


Is char * a string?

0 Answers  


What is the immediate parent class of the Applet class?

1 Answers  


Which is better 64 bit or 32 bit?

0 Answers  


What is parsing a sentence?

0 Answers  


When do you create an index?

0 Answers  


Categories