A java blog with a collection of examples and tutorials on Java and related technologies. (Under maintenance with continuous updates)
Be in touch with java jazzle or k2java.blogspot.com.
Pages
▼
Friday, February 18, 2011
Method overloading,overriding and static
public class Test {
public staticvoid test(){
print();}
public staticvoid print(){
System.out.println("Test");}
public void print(){
System.out.println("Another Test");}}
So this code will not work stating - duplicate method error.
No comments:
Post a Comment