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 |
Difference between interface and abstract class with ex.
4 Answers Cognizant, Tech Mahindra,
What is volatile data type?
What is the arraylist in java?
Why is static used?
Can we convert stringbuffer to string?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
What is stringjoiner ?
Can a main method be overloaded?
How strings are created in java?
What is the difference between stringbuffer and stringbuilder?
Hi Friends, I am new to java. Can u explain about thread concept.How i know one thread is locked, and how can i force or acquire another thread for lock . Finally how to know thread is released from lock. Explain types of lock(like method level and block level) in thread.
Why deletion in linkedlist is fast than arraylist?