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

If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?

Answer Posted / pravin

If you are making methods as abstract other restictions of
and difference is as it is like about modifiers[private, final, transient, volatile]

when condition is like your class extends other class [like JFrame or any such condition]then you cant use abstract class you must go to the interfaces.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static import?

1098


Can we change the scope of the overridden method in the subclass?

1318


What is a singleton class in Java?

986


When will we prefer to use set and list in java and why?

900


What is a nested structure?

973


What are java packages? What's the significance of packages?

1224


What is an empty string in css?

981


What are the Main functions of Java?

1053


I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

956


What is data object example?

940


Can a class have an interface?

921


What is a boolean field?

911


What happens if I remove static from main method?

972


Is arraylist a class in java?

997


What is the purpose of the enableevents() method?

989