Can we declare final variables in side a method.

Questions by srinivas_hariprasad

Showing Answers 1 - 8 of 8 Answers

Shrikrishna

  • Nov 14th, 2005
 

Ya, Sure We can declare final variables inside a method.

  Was this answer useful?  Yes

suma

  • Feb 13th, 2006
 

yes we can. but it is not recommended .

  Was this answer useful?  Yes

riaaz

  • Feb 15th, 2006
 

it is useful in cases like if u dont want to reassign second value .

ex :Gravitational Force.

  Was this answer useful?  Yes

Mahesh

  • Aug 2nd, 2006
 

Yes, it is possible to declare a final variable inside a method but it is not recommended.

  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