compile error

I have an interface

Abc.java it has method

public String[] Test();

I have another class

public final DEF implements Abc

{

public String[] Test()

{

//body of this method

}

}

got compile error

DEF is not abstract and does not override abstract method Test() in Abc

[javac] public final DEF implements Abc{

[javac] ^

[javac] 1 error

Message was edited by:

Unknown_Citizen

[493 byte] By [Unknown_Citizena] at [2007-11-27 9:25:04]
# 1
forgot 'class' or 'interface'
robtafta at 2007-7-12 22:21:29 > top of Java-index,Java Essentials,Java Programming...
# 2
class is there ...its typo
Unknown_Citizena at 2007-7-12 22:21:29 > top of Java-index,Java Essentials,Java Programming...
# 3
Odds are the fault with the code is another typo.
malcolmmca at 2007-7-12 22:21:29 > top of Java-index,Java Essentials,Java Programming...
# 4
never mind ...found the error.....closed
Unknown_Citizena at 2007-7-12 22:21:29 > top of Java-index,Java Essentials,Java Programming...
# 5

You must be using an old version of Abc or you are showing the wroing source or something. Delete all your class files and try compiling again.

interface Test120a{

public String[] test();

}

public class Test120b implements Test120a {

public String[] test() {

// body of method

return new String[]{"a","b"};

}

}

>javac Test120a.java

>javac Test120b.java

>

jbisha at 2007-7-12 22:21:29 > top of Java-index,Java Essentials,Java Programming...
# 6
> never mind ...found the error.....closedCould you share the solution with us for the benefit of anyone else who gets the problem? Or was it just some dumb mistake? ;-)
georgemca at 2007-7-12 22:21:29 > top of Java-index,Java Essentials,Java Programming...
# 7
just changed the position of the method in the pile of methods .... that worked
Unknown_Citizena at 2007-7-12 22:21:29 > top of Java-index,Java Essentials,Java Programming...
# 8
> just changed the position of the method in the pile> of methods .... that worked? Where the method is in the source code should not have made any difference.
jbisha at 2007-7-12 22:21:29 > top of Java-index,Java Essentials,Java Programming...
# 9
> > just changed the position of the method in the> pile> > of methods .... that worked> > ? Where the method is in the source code should not> have made any difference.I'm guessing some sort of brackets h3ll
georgemca at 2007-7-12 22:21:29 > top of Java-index,Java Essentials,Java Programming...