interface Foldable { public void fold() throws Exception ; } class Paper implements Foldable { public void fold() { // line 6 System.out.print("Fold"); } } public class Tester { public static void main(String args []) { Foldable obj1 = new Paper(); obj1.fold(); // line 8 Paper obj2 = new Paper(); // line 10 obj2.fold(); } }
public void fold() throws Exception ;
}
class Paper implements Foldable {
public void fold() { // line 6
System.out.print("Fold");
public class Tester {
public static void main(String args []) {
Foldable obj1 = new Paper();
obj1.fold(); // line 8
Paper obj2 = new Paper(); // line 10
obj2.fold();
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.