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

What is difference between abstract class & final class

Answer Posted / farhad

A final class CANNOT be extended or subclassed however it can be instantiated:
final class A{
}

class B{
A a = new A(); //<<< instantiating final class A
We cannot say:
class B extends A //!!! that's a NO NO.
On the other hand abstract class can be subclassed but CANNOT be instantiated.
abstract class A{
}
class B extends A{
}

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the process as to how substring() methodology mechanisms in java.

1124


What do you mean by an interface in java?

1028


What is method reference in java?

1139


Which java version is latest?

1031


Is java map thread safe?

958


What are the benefits of operations in java?

1047


java program with complete 4 oops concepts implemented example

3156


Explain the difference between the public, private, final, protected, and default modifiers?

1042


Is an integer an object?

963


How to display names of all components in a Container?

2938


What are inbuilt functions?

984


Will minecraft java be discontinued?

1165


What are different types of references?

977


What is replaceall in java?

1024


Is java written in c?

959