File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes built in Annotation doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "built in Annotation doubt" Watch "built in Annotation doubt" New topic
Author

built in Annotation doubt

vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
I tried sample for built in Annotations



Source

As per the source this program will show compilation error, but it is not showing any error

Why it is not showing?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36508
    
  16
The reason you are getting an error is that you have not overridden the toString method, but have overloaded it. Look closely at the Object class.
vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
The reason you are getting an error is that you have not overridden the toString method, but have overloaded it. Look closely at the Object class.


I am not getting error.I like to get error at this scenario.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3169
    
  10
The annotation is @Override (no 's' on the end)


Joanne
vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
Thanks Joanne.It is Showing Error now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: built in Annotation doubt
 
Similar Threads
the tortoise and the hare
Spring EJB Source Code
How to execute commands or sh files from JAVA in Solaris
Printing text file using Java
data validation using XSD