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 is the difference between overriding and overloading in OOPS.
0 Answers Axtria, ITC Indian Tobacco Company,
What is composition in java?
When to use runnable interface vs thread class in java?
how can we use the servlet as standalone apllication?should we need to extend any class?
What are the three parts of a lambda expression? What is the type of lambda expression?
What is dot operator?
why java does not support multiple inheritance
41 Answers Diamond, Euclid, Evergent, KLKJ, Mind Tree, NIIT, SSI Small Scale Industries, Wipro,
What is loop in java?
What is the difference between heap and stack memory?
What is static binding and where it occurs?
I want to store more than 10 objects in a remote server? Which methodology will follow?
Does treeset use compareto?