aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Static methods cannot be overriden query... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Static methods cannot be overriden query..." Watch "Static methods cannot be overriden query..." New topic
Author

Static methods cannot be overriden query...

Nazeer Ahmed
Greenhorn

Joined: Aug 05, 2006
Posts: 21
Hi

Static methods cannot be overriden but they can be redefined.Please help to clarify what is this about.The following code looks same like overriding.I am not able to understand the difference.

class one{
static public void methodA(){
System.out.println("class one methodA");
}
}

class two extends one{
static public void methodA(){
System.out.println("class two methodA");
}

}
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18670
http://faq.javaranch.com/view?OverridingVsHiding


"I'm not back." - Bill Harding, Twister
Nazeer Ahmed
Greenhorn

Joined: Aug 05, 2006
Posts: 21
Thanks Jim
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Static methods cannot be overriden query...
 
Similar Threads
deciding method from which class to call depending upon parameter passed in
when can you override
Certification Study Guide by Simon Roberts Philip Heller Micheal Ernst
static method query?
Can static methods be overridden by static methods only?