Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between abstract class and
Interface?where we can use it in realtime projects?

Answer Posted / nanda

diff b/w abstract class and interface
1.Abstract class contain both normal fn as well as Abstract
fn wheras Interface can define only abstract fn.
2.by default declared variable in interface is static and
final.
in realtime projects we use inerfaces in AWT OR SWING,where
we implement the inerfaces and use them

Is This Answer Correct ?    30 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are generic methods?

911


What is the difference between overriding & overloading?

1002


Similarity and difference between static block and static method ?

870


What is object cloning in Java?

1053


What are the different access modifiers available in java?

976


What is the static variable?

1047


What is the purpose of the wait(), notify(), and notifyall() methods in java programming?

998


List any five features of java?

960


What does sprintf return?

1007


Explain the difference between runnable and callable interface in java?

1000


Is string a data type in java?

976


What are the methods used to implement for the key object in the hash map?

981


Can we extend singleton class in java?

912


How do you test a method for an exception using junit?

1131


Is java written in c?

908