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
Is void a data type?
Can we restart a dead thread in java?
What is keyword and identifier?
Can we declare main () method as non static?
Why java uses the concept of the string literal?
How can you generate random numbers in java?
Explain about interthread communication and how it takes place in java?
Explain the difference between a Thread and a Process.
What does n mean?
I want to persist data of objects for later use. What’s the best approach to do so?
Can we extend singleton class?
What are the five major types of reference sources?
What is the private method modifier?
What is the function of http?
Is oracle java 11 free?