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 |
How do you compare arrays in java?
What does next mean in java?
Can java cast null?
What is casting?
What is natural ordering in java?
why is multiple inheritance not allowed in java?
7 Answers Elementus Technologies, Huawei, Infosys,
Hi Friends, can you explain instance in java. In general instance means "occurence of something" . In java what is instance.
Can we call the run() method instead of start()?
What is the symbol for space?
When do we use synchronized blocks and advantages of using synchronized blocks?
What are internal variables?
What is meant by class?