ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
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?? 
 Question Submitted By :: Shyam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
ur public abstract class qpr implements xyz not abc 
becoz abc is method
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Explain different ways of passing arguments to sub-routine?  1
11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.  1
What is numeric promotion?  1
How the threads are synchronized? BMC2
Can an anonymous class be declared as implementing an interface and extending a class?  1
What is anonymous class?  2
what is stringtolennizer with example? Symphony1
What is update method and when it is called?  1
Howmany classes that package java.applet.* contains? TCS1
what is the difference between AWT and SWING what is the advantage of using swing?  3
What is unicode?  1
How to synchonise HashMap IBM3
explain about jre and jvm  2
They had given one progam final HashMap hm=new HashMap(); public void show() { hm.put("name",value); } in this prg here the final hashtable value can be changed in put method,its the prg run? DNS2
Difference between JDK, JRE, JVM Oracle5
What are the latest versions in JAVA related areas? Netcraft2
using equals method overriding which objects are compared?i.e same class objects or other class objects?Explain me.  3
hi to all. well can you please tell me that why String class is immutable? Thanks in advance. Huawei3
What enableEvents() method do?  1
Which containers may have a MenuBar?  1
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com