File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark ""static" and "private" overridden" Watch ""static" and "private" overridden" New topic

"static" and "private" overridden

Ranch Hand

Joined: Dec 16, 2005
Posts: 103
Hello Guru's,

I have little bit confuse about "static" and "private" overridden.
Pls help me to understand this concept by providing document or explanation.

Thanks, Raghu.K
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
There is no such thing as "static" overriding or "private" overriding.
So just remember that you cannot override a static method nor a private method.
[ August 22, 2006: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
Can a private method be overridden?
Can static methods be overridden?
I agree. Here's the link:
subject: "static" and "private" overridden
It's not a secret anymore!