Create and Use Custom Java Annotations | Meta-Annotations in Java | Geekific

preview_player
Показать описание

Since Java 5, annotations have shaped the way we design our applications. By adding an annotation to a method, interface, class, or field, we can: Inform the compiler about warnings and errors; manipulate source code at compilation time; or modify a certain behavior at runtime. In this video, we create our own custom annotations, and then try to make use of them with the help of Java’s Reflection API.

Timestamps:
00:00 Introduction
00:08 What are Java Annotations?
00:44 Creating our own Annotation
04:32 Working with our Annotations
06:00 Built-In Java Annotations
07:28 Thanks for Watching!

If you found this video helpful, check other Geekific uploads:

#Geekific #Annotations #Java #JavaAnnotations
Рекомендации по теме
Комментарии
Автор

I just engaged with annotations yesterday for the first time while updating and refactoring a large project that was written 20+ years ago in java 1.4. This was an excellent, self contained example that got me off and running.

aljohnson
Автор

Awesome, as always. Thank you for your efforts!!!

svalyavasvalyava
welcome to shbcf.ru