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 and abstract class with ex.

Answer Posted / aditya

Abstract Class :
1. Can have implemented(non-abstract) method
2. Can have any visibility public,protected,private


Interface :
1. All methods are non-implemented(abstract)
2. Only visibility is public or none
3. All variables should be static and final

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can't we use static class instead of singleton?

951


Which sort is best in java?

979


Is vector thread safe in java?

1061


Why is method overloading not possible by changing the return type in java?

1011


What is get () in java?

1058


What is the SimpleTimeZone class?

2286


What is the difference between heap and stack memory?

1202


Should a main method be compulsorily declared in all java classes?

1075


How does the garbage collector works in java?

1096


Explain about exception propagation?

1044


How do I convert a string to an int in java?

1078


What is a method in programming?

1191


Why call by value prevents parameter value change?

1079


Difference difference paint() and paintcomponent()?

1004


Difference between a process and a program?

1121