|
-
Jan 9th, 2002, 04:23 PM
#1
Thread Starter
Hyperactive Member
private and final methods
can anyone think of an instance where it wouldn't be advantageous to declared a private method final? b/c as i've read final methods optimized could by being mainline. The only disadvantage of using final is that the method can't be over-riden by a subclass... but private methods aren't inherited anyway! it seems to make perfect sense to me to declare all all my private methods as final .... unless the Java compiler already does that and it would be redundant. Any thoughts anyone?
"There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein
If you are programming in Java use www.NetBeans.org
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|