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

Answers were Sorted based on User's Feedback



What is difference between abstract class & final class..

Answer / amit singh

1)abstrat class is just a incomplete class mean to say you
only declare a method when some class extends this abstart
class then it adds some facility in this class when you
define the method body those inherited from the abstract
class.
2)but the fianl class you cn't able to add the new
functionality to this class because extnd the class its not
just mean to make child clss but to means to facilitate
this class with some aditive coding .so means to say that
its complete class you don't able to add new functionality
in this class and you never extends this class .
thanks amit singh

amitsing2008@gmail.com

Is This Answer Correct ?    29 Yes 3 No

What is difference between abstract class & final class..

Answer / amit saxena

Abstract class is the one which is suppose to be extended
but
when we declare a class as final, we cannot extend it.

Is This Answer Correct ?    30 Yes 8 No

What is difference between abstract class & final class..

Answer / rajabhau

abstract class can not instantiate.
abstract class can not create abstract constructor or static method.abstract class must be inherited. and vice versa final class.

Is This Answer Correct ?    25 Yes 14 No

What is difference between abstract class & final class..

Answer / guest

abstract class is a class that has no direct instance in
the system but final class is a class in which we found the
correct answer

Is This Answer Correct ?    16 Yes 12 No

What is difference between abstract class & final class..

Answer / shivshankar gupta

1.final class is variable but abstract class not a variable
2.abstract method declare public and default but final class declare public...

Is This Answer Correct ?    6 Yes 2 No

What is difference between abstract class & final class..

Answer / pallavi

An abstract class is one which can't be instantiated, as it
contains one or more abstract methods( methods that are
only declared, their implementation is left for
subclasses).An abstract class always needs to be extended
in order to be used.
A Final class is one which can't be extended/inherited.

Is This Answer Correct ?    11 Yes 8 No

What is difference between abstract class & final class..

Answer / 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

More Core Java Interview Questions

public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }

0 Answers  


How do constructors use this() and super()?

0 Answers  


Is it possible to override the main method?

0 Answers  


What is the class in java?

0 Answers  


Why we can not force Garbage Collection?

7 Answers  


Define a java class.

1 Answers  


List two java ide’s?

0 Answers  


What is difference between iterator and enumeration in java?

0 Answers  


How can we use primitive data types as objects?

0 Answers  


How to check if linked list contains loop in java?

0 Answers  


transaction attributes ?

2 Answers  


Implementations of set interface?

0 Answers  


Categories