Home > Java > javaTutorial > What is the definition of java meta-annotation?

What is the definition of java meta-annotation?

王林
Release: 2023-04-29 08:46:06
forward
941 people have browsed it

1. Concept

Meta-annotations are annotations used to modify annotations, usually used for the definition of annotations.

2. Type

@Target: The target of the annotation.

@Retention: Annotation life cycle.

@Documented: Whether the comment should be included in the JavaDoc document.

@Inherited: Whether subclasses are allowed to inherit annotations.

3. Example

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.SOURCE)
public @interface Override {
 
}
Copy after login

What are the basic data types of java

The basic data types of Java are divided into:

1. Integer type, used to represent the data type of integers.

2. Floating point type, a data type used to represent decimals.

3. Character type. The keyword of character type is "char".

4. Boolean type is the basic data type that represents logical values.

The above is the detailed content of What is the definition of java meta-annotation?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template