in java what does the @ symbol mean?

后端 未结 6 1391
后悔当初
后悔当初 2020-12-13 08:12

I know what it means in a comment for documentation purposes, but outside of that what does it mean? (I would normally just google this but every non letter symbol shows up

6条回答
  •  不思量自难忘°
    2020-12-13 09:00

    The @ sign is used to specify Java Annotation.

    https://en.wikipedia.org/wiki/Java_annotation

    There are built-in Java Annotation and user defined Custom Annotation.

    Annotations are used in various ways, such as suppress warning, associate method to URI (Servlet), associate variables to resource (JNDI) etc

提交回复
热议问题