About Question enthuware.ocajp.i.v7.2 . 1390 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
gparLondon
Posts: 63
Joined: Fri Oct 31, 2014 6:31 pm
Contact:

About Question enthuware.ocajp.i.v7.2 . 1390 :

Post by gparLondon »

Why option A is not correct? I am using kindle edition, might be its old one(I purchased it in November-2014). I wrote this code which is fine.

Code: Select all

package com.oracle.certification.OnlyInheritance;

 class Sub extends Super implements Tone{
	
	public void go()
	{
		System.out.println("Go! Go! Go!");
	}

}

Code: Select all

package com.oracle.certification.OnlyInheritance;

public class Super {
	
	public static void main(String args[])
	{
		Super s=new Sub();
		((Tone)s).go();
	}

}

Code: Select all

package com.oracle.certification.OnlyInheritance;

 interface Tone {
	
	void go();

}

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1390 :

Post by admin »

Option a is marked correct. Even in the Kindle version, it says Correct Options are: A C

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests