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 the difference between static and non-static variables in java programming?
What is executor memory?
What are generic methods?
What are passing parameters?
What are different access specifiers in java? Explain
What are constructors in java?
Can a class be a super class and a sub-class at the same time? Give example.
What’s the difference between constructors and other methods?
What is jit and its use?
What is variable and constant explain with example?
What do you mean by access modifier?
What is a java applet? What is an interface?
Is passing by reference faster?
How to change the priority of thread or how to set the priority of thread?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?