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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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
what is difference between abstraction and interface?
 Question Submitted By :: Jayaraju
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is difference between abstraction and interface?
Answer
# 1
Abstract classes define methods and interfaces declare 
methods.
Interfaces declare methods without implementation.
Abstract classes are very much useful when there is a same 
functionality across various classes.
Interfaces are useful for classes which varies in 
functionality and with the same method signature.
 
Is This Answer Correct ?    1 Yes 0 No
Kavitha
 
  Re: what is difference between abstraction and interface?
Answer
# 2
A class becomes an abstract class when it has atleast one 
abstract method(a method with no definition).The major 
difference between abstract classes and interfaces is that 
an abstract class can contain both methods with zero 
definition as well as methods with definition.But an 
interface is one in which all the methods are with no 
definition.
 
Is This Answer Correct ?    0 Yes 0 No
Chandra Rekha
 
 
 
  Re: what is difference between abstraction and interface?
Answer
# 3
Abstract class contains one or more unimplemented methods 
left for future implementation by its derived class.it has 
all property of class it cannot be instantiated.it provides
default behaviour.

Interface is mear specification nothing is implemented its 
just a declaration.in java using interface we can model 
multiple inheritance. it provides design flexibility.
 
Is This Answer Correct ?    0 Yes 0 No
Muthusenthil
 
  Re: what is difference between abstraction and interface?
Answer
# 4
abstraction is used in framework
interface is used in specification
 
Is This Answer Correct ?    1 Yes 0 No
Ravikiran
 
  Re: what is difference between abstraction and interface?
Answer
# 5
Abstraction is used in framework interface is used in 
specification...
 
Is This Answer Correct ?    1 Yes 0 No
Hitesh Mandhyan
 
  Re: what is difference between abstraction and interface?
Answer
# 6
abstraction is used in framework
interface is used in specification
 
Is This Answer Correct ?    0 Yes 0 No
Meena
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is the order of method invocation in an Applet?  1
What is meant by serialisation and deserialisation?  2
why the abstract class has default constructor?  1
How can we find size of the object ? RazorSight1
What is the smallest package in Java API?  2
What is a J2EE component? List out all the component? Adobe2
What are null interfaces in JAVA ? and give me some examples?  2
As a developer what steps do you take to improve the performance?  3
How you can create a radio buttion using Checkbox class?  1
What modifiers are used with a top level class?  2
waht happens when a return type ,even void is specified for a constructor?  9
define System.out.println(); what is the meaning!  6
for what purpose we use applets ? Mindlogicx2
what are the purposes of native, transiant key words?  2
Define Compiling?  2
why java not supproting multiple inheritance?  4
what is jms? features of jms CTS1
What is file class and what is its purpose?  1
what is the use of declaring constructor as private? Sai-Softech3
What is casting?  3
 
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