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 abtsract & final

Answer Posted / naveen

abstract and final are java modifiers. abstract is applied
to only class and methods.If class is abstract we cannot
instantiated of the class.If method is abstract it cannot
have body.abstract class contains concreate methods and
abstract methods.

final is a java modifier . It can be applied to class ,
variables, methods.If class is final we cannot inherited the
class. If variable is final we cannot change the value of
the variable. If method is final we cannot override that method.

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between static and non-static variables in java programming?

913


What is executor memory?

889


What are generic methods?

912


What are passing parameters?

1008


What are different access specifiers in java? Explain

1056


What are constructors in java?

1020


Can a class be a super class and a sub-class at the same time? Give example.

1446


What’s the difference between constructors and other methods?

933


What is jit and its use?

947


What is variable and constant explain with example?

1014


What do you mean by access modifier?

967


What is a java applet? What is an interface?

1029


Is passing by reference faster?

941


How to change the priority of thread or how to set the priority of thread?

988


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

923