1 package test4; 2 3 public class DeclMethodsList { foo()4 public void foo() {} foo(int i)5 int foo(int i) { return i; } bar()6 public void bar() {} 7 } 8