Is it redundant to add private
and final
to a same method?
class SomeClass {
//--snip--
private final void doStuff()
{
// private work here
}
}
If it's private
, there's no way anyone can override it, right?
Why is it possible to add final
keyword if it has no effect? (or am I missing something?)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…