Final variables in method
I have another doubt..
1.can we declare final variables in a class outside a method
example: public class A { final xxx xxxx; --methods{}//end of methods-- }//end of class
2.can we declare static variables in a class outside a method
3.can we declare public variables in a class outside a method
Re: Final variables in method
What does the compiler say when you try those things?
Code a small test program and try them.
Re: Final variables in method
Please don't ask your questions in two separate threads. I'll close the other thread.
kind regards,
Jos