What is difference between abstract class & final class
Answer Posted / 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 |
Post New Answer View All Answers
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
how do I create a runnable with inheritance? : Java thread
What is args length in java?
What is field name?
Why are the objects immutable in java?
how to split string in java?
What are drawbacks of singleton class?
Why object class is super class for every class in java?
What is the difference between array and array list in java?
What is mnemonic code?
Can you change array size in java?
Difference between == and .equals() ?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
When can an object reference be cast to an interface reference in java programming?
What are keywords give examples?