Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Ian Z
Ian Z
14,584 Points

what does @override before the method do?does Ben go over this?

in the default main activity of an android app there are @override s before the methods.

Is there a video where Ben goes over this? i dont remember seeing one

1 Answer

Christopher Augg
Christopher Augg
21,223 Points

Hello Ian,

It was talked about in the Java videos. It just means that the author is specifying that they intended to override the method so that the compiler knows to check for errors when a mistake leads to not actually overriding it. Here is the documentation:


I hope that helps....