• Post Reply Bookmark Topic Watch Topic
  • New Topic

@override?  RSS feed

 
George Lin
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,


I am using JDK 1.4 and there is a compiling a 3rd party program error because of un-recognized word @override. Could anyone let me know what is the function of @override and in order to use it, which version of JDK is required?


thanks in advance,
George
 
John Bartlett
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

if you take a look at @Override it states it has been available since J2SE 5.0 so you'll need the JDK5.0 or higher.

John
[ July 25, 2007: Message edited by: John Bartlett ]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it gets in the way of compiling, you can safely delete it from the source without fear of runtime consequences.
 
George Lin
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks John,

Originally posted by John Bartlett:
Hi,

if you take a look at @Override it states it has been available since J2SE 5.0 so you'll need the JDK5.0 or higher.

John

[ July 25, 2007: Message edited by: John Bartlett ]


I am looking for samples of how to use @override. Do you have any samples or sample reference?


regards,
George
 
George Lin
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf,


Originally posted by Ulf Dittmer:
If it gets in the way of compiling, you can safely delete it from the source without fear of runtime consequences.


Do you know where to find any samples for @override?


regards,
George
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Override is an annotation. Annotations are a new feature added to Java in version 5.

See The Java Tutorial - Annotations.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!