Answer Posted / 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 |
Post New Answer View All Answers
What is void keyword?
Why string is called as immutable?
What is final, finally, finalize?
Which collection is best for sorting in java?
What is re-factoring in software?
Is hashmap thread safe?
What are the pillars of java?
What is string syntax?
What is the properties class?
How to make a non daemon thread as daemon?
Convert a BST into a DLL and DLL to BST in place.
How objects of a class are created if no constructor is defined in the class?
What is a ?
What is jit compiler in java?
Add a value x to array from index l to r where 0 <= l <= r <= n-1