What is difference between abstract class & final class
Answer Posted / 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 |
Post New Answer View All Answers
Does java runtime require a license?
Can we use a switch statement with strings?
What is bubble sorting in java?
Explain constructors and types of constructors in java.
What are three ways in which a thread can enter the waiting state in java programming?
Explain the access modifiers for a class, method and variables?
Can we have 2 main methods in java class?
What happens when I use / and % with a negative numerator?
When can we say that threads are not lightweight process in java?
How we create object in copy constructor?
Describe what happens when an object is created in java ?
Why we do exception handling in java and how many types of exceptions are there?
Does google use java?
What is thread pool? How can we create thread pool in java?
Explain polymorphism citing an example.