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

What function extracts specified characters from a string?

0 Answers  


What is your platform?s default character encoding and how to know this?

0 Answers   TCS,


Why generics are used in java?

0 Answers  


Is arraylist dynamic in java?

0 Answers  


What is the destroy method?

0 Answers  






What is the common usage of serialization?

0 Answers  


what is the full form of java

3 Answers  


What is the benefit of inner / nested classes ?

0 Answers  


Can we write multiple catch blocks under single try block?

0 Answers  


What’s the difference between applets and standalone program?

0 Answers  


What does main method?

0 Answers  


Which class has no duplicate elements?

8 Answers  


Categories