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                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
where u use Abstraction and Interface in real time
 Question Submitted By :: Bvsra_ban@yahoo.co.in
I also faced this Question!!     Rank Answer Posted By  
 
  Re: where u use Abstraction and Interface in real time
Answer
# 1
If a user want to interact with my application he need an
interface. With the interface the user can access the
specific methods of a class that implemented the interface.
For example user want to call a method. He already know the
specific class implemented that interface, then he can call
the method through reference object.

Abstract class is used whenever a user restricted to
inheritance but not taking instance of a class or if any
methods are there that should be implement by the user.
 
Is This Answer Correct ?    4 Yes 0 No
Praveen
 
  Re: where u use Abstraction and Interface in real time
Answer
# 2
Abstraction is used in framework and interfaces are used in 
specification
 
Is This Answer Correct ?    3 Yes 0 No
Narasimha
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is difference between excute query ()and execute update ()? Symphony5
What is difference between Eclips and MyEclips?  2
What is the purpose of a statement block?  1
Explain cookies?  2
What is AppletStub?  1
whst is encapsulation?when u encpsulate actually while devoloping code? AMDOC5
What are the standards to place package statement within a source code file?  1
What is thread? BMC5
How the elements are organized in GridBagLayout?  1
What is method Overriding in the perspective of OOPS?  2
how can i cal servlet from jsp page?how can i pass variablesfrom the jsp that servlet can access? Verizon1
watz the difference between abstract class and interface? Which one u ill choose as a designer? Sonata1
What are File and RandomAccessFile classes?  1
What method is used to compare two strings ?  4
what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading? Satyam3
What is Hash Code in Java? Cognizent1
why interaction with server using javascript is difficult  1
What are the interfaces defined by Java.lang package?  1
when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.  2
What will happen inside init() in servlet. my interviewer asked servlet lifecycle. i said "once servlet is loaded in to memory init() will be called which performs servlet initialization " . Again interview asked what values will be initialized . what is difference between init() and init(ServletConfig config). Infinite-Computer-Solutions2
 
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