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...

Difference between Interface & Abstract class?

Answer Posted / ravikiran(aptech mumbai)

Interface is purely abstract.all the methods declared inside
the interfaqce are by default abstract and public.

where as an abstract class can have abstarct as well as non
abstact methods.

And an abstract class may heve no abstract methods at all.
we will do like this to restrict the creation of instance
ofthat particular class.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we cannot override static method?

1121


Can a static method be final?

1109


What is the symbol for average?

1081


How do you square a number?

1347


What is the use of optional ?

1087


What state is a thread in when it is executing?

1030


How does arraylist work in java?

1168


Can we override protected method in java?

1114


What is finalize()?

1265


Is there any difference between synchronized methods and synchronized statements?

1139


2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

2327


Write a program to show whether a graph is a tree or not using adjacency matrix.

1147


How destructors are defined in java?

1240


What are advantages of using Java?s layout managers than windowing systems?

2430


Is it possible to use string in the switch case?

1101