Newbie to Java here. I'm in the process of porting my iPhone app to Android. From what I've read, the final
keyword is pretty much equivalent to static
. But does it work the same inside a method?
For example in Objective-C inside a method... static Class aClass = [[aClass alloc] init];
wouldn't be reallocated again and it wouldn't be disposed at the end of the method.
Would something in Java inside a method like... final Class aClass = new aClass();
act the same?