Developer community
0 votes
1.2k views
asked by Expert (11.4k points) 16 23 32 | 1.2k views

1 Answer

0 votes
 
@Inherited
@Inherited is a marker annotation that can be used only on another annotation declaration. It affects only annotations that will be used on class declarations. @Inherited causes the annotation for a superclass to be inherited by a subclass.
 
@Override
@Override is a marker annotation that can be used only on methods. A method annotated with @Override must override a method from a superclass.
 
@Deprecated
@Deprecated is a marker annotation. It indicates that a declaration is obsolete and has been replaced by a newer form.
 
@SuppressWarnings
@SuppressWarnings specifies that one or more warnings that might be issued by the compiler are to be suppressed. The warnings to suppress are specified by name, in string form. This annotation can be applied to any type of declaration.
 
 
answered by Sr Member (5k points) 7 10 12

Related questions

0 votes
1 answer
asked by felin Advisor (8.4k points) 10 15 18 | 44 views
0 votes
1 answer
asked by omari Sr Member (3.9k points) 5 8 12 | 1.1k views
0 votes
1 answer
asked by omari Sr Member (3.9k points) 5 8 12 | 22 views
0 votes
1 answer
asked by sunny Expert (11.4k points) 16 23 32 | 20 views
0 votes
1 answer
asked by omari Sr Member (3.9k points) 5 8 12 | 27 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

3,754 questions
4,046 answers
117 comments
10,709 users