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 / sudhakar

1)We define an Interface in the Java application with a
set of abstract methods without any implementation. Which
means all the methods of an interface are by default
abstract methods and public methods.
2)Once an Interface is defined in the application then any
class can implement that interface, in such case the class
must be implemented with all the mehtods of the respective
Interface otherwise the class will become as abstract class.
3)A class can implement any no. of interfaces, in such case
the class must be implimented with all the methods of those
interfaces otherwise the class will become as abstract class

Is This Answer Correct ?    125 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an empty string in css?

1101


Is empty in java?

1111


Can you use this() and super() both in a constructor?

1034


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

1010


What is the function of character?

1107


Write a java program to generate fibonacci series ?

1102


Which is faster string or stringbuilder?

988


What are measurable parameters?

1130


What are white spaces in java?

1122


What do you mean by inner class in java?

1146


What is the collections api in java programming?

1028


What is a double vs float?

1068


Can you make a constructor final in Java?

1194


How to sort an array from smallest to largest java?

1036


What is the difference between JDBC 1.0 and JDBC 2.0?

3226