Difference between abtsract & final
Answer / 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 |
What function extracts specified characters from a string?
What is your platform?s default character encoding and how to know this?
Why generics are used in java?
Is arraylist dynamic in java?
What is the destroy method?
What is the common usage of serialization?
what is the full form of java
What is the benefit of inner / nested classes ?
Can we write multiple catch blocks under single try block?
What’s the difference between applets and standalone program?
What does main method?
Which class has no duplicate elements?