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   SiteMap shows list of All Categories in this site.
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
Can you explain the difference b/n abtract and interface
with a good example,?In what cases we have use abtract and
what case interface?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Can you explain the difference b/n abtract and interface with a good example,?In what cases we have use abtract and what case interface?
Answer
# 1
Interface is the 1st Level.here methods does not contain 
any executable code.just it contains only declerations.here 
in interface level we does not know anything.
Abstract class is a class which contains methods which may 
contains exceutable code or not.this is the 2 nd level.here 
in abstarct class level we know some thing.
for ex take a  maruthi car.......
in interface level.
we doesn't know about egine company........some parts.....
we know .....but its not sure...
in abstract class level
for ex take a maruthi 800 car......
we knows the comapany of that car.
here we know about some thing bcz here they mentioned 
maruthi 800....

thats the difference.....
 
Is This Answer Correct ?    0 Yes 1 No
Ipdarsini
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Default layout of Dialog object?  1
What is the difference between Abstract Class and Interface AMDOC6
what is the difference between pagecontext and servletcontext? JBA-Infotech4
Does 'true' and 'false' are keywords?  5
10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile? a)Direction d = NORTH; b)Nav.Direction d = NORTH; c)Direction d = Direction.NORTH; d)Nav.Direction d = Nav.Direction.NORTH;  1
What is the difference between Trusted and Untrusted Applet ? IBM1
what is difference between requestprocessor and request dispatcher? Tech-Mahindra1
How many statements can be created with one connection in jdbc? Polaris2
Are there any tools available in java to create reports?  5
What for read() function?  3
How to create an instance of a class without using "new" operator? Plz help me out properly.Thank u. CSC8
What is the use of anonymous inner classes ? HCL8
What is the purpose of premetive data types in java? Merrill-Lynch2
what is d difference between deep cloning and shallow cloning in core java? Satyam2
What are order of precedence and associativity, and how are they used?  1
What are event-delegation model and event-inheritance model? Which is best?  1
What are wrapper classes? Noah-Solutions6
how to pass the parameters to applets?  1
what is Assertion? Wipro2
what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading? Satyam2
 
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