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
Why put method is idempotent?
what is deadlock? : Java thread
Does treeset use compareto?
What’s the difference between callable and runnable?
Is java call by reference?
What are the topics in advance java?
Which is bigger float or double java?
What does method mean?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
What is the difference between a break statement and a continue statement?
What is the significance of java packages?
What is the static variable?
What is static import in java?
What is the difference between a loader and a compiler?
Can constructor be inherited?