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

Is void a data type?

944


Can we restart a dead thread in java?

976


What is keyword and identifier?

1118


Can we declare main () method as non static?

957


Why java uses the concept of the string literal?

1045


How can you generate random numbers in java?

1034


Explain about interthread communication and how it takes place in java?

1008


Explain the difference between a Thread and a Process.

987


What does n mean?

991


I want to persist data of objects for later use. What’s the best approach to do so?

915


Can we extend singleton class?

931


What are the five major types of reference sources?

1099


What is the private method modifier?

1076


What is the function of http?

1018


Is oracle java 11 free?

933