What is the difference between final & constant modifier?

Showing Answers 1 - 10 of 10 Answers

saurabh80

  • Oct 27th, 2006
 

iIn "final" keyword the value of variable remain constant for all progra m(that class).  The "constant" also does this feature but,we can inherite the constant variable  .In final we cant'inhrite final class or overwride  final class.       

  Was this answer useful?  Yes

ramakrishnareddy

  • Nov 10th, 2006
 

hi this ramakrishnareddy i want to tell about final keyword this key wor is used to declare constants,class. when ever we are declare constants with this keyword that constant value can not posiable to chang every time.when ever we are declare class with this keyword that class can not posiable to extends every time.

  Was this answer useful?  Yes

Satish Patil

  • Feb 25th, 2007
 

java doesnt have "constant" modifier

  Was this answer useful?  Yes

Nandhu

  • Mar 3rd, 2007
 

We can't change final value.

We can change constant value.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions