Difference between abtsract & final



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

Post New Answer

More Core Java Interview Questions

How do you compare arrays in java?

0 Answers  


What does next mean in java?

0 Answers  


Can java cast null?

0 Answers  


What is casting?

5 Answers  


What is natural ordering in java?

0 Answers  






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.

4 Answers  


Can we call the run() method instead of start()?

0 Answers  


What is the symbol for space?

0 Answers  


When do we use synchronized blocks and advantages of using synchronized blocks?

0 Answers  


What are internal variables?

0 Answers  


What is meant by class?

0 Answers  


Categories