Quote:
Originally Posted by nogono public static final int variable=100;
When we are intializing variable as static...is there any necessity to declare it final......
will be fine if public static int variable=100; |
It's depending on your needs, sometimes we want that variable to be final, so that it can't be changed
