There are *NO* tags in Java.
There are tags in JSP.
Don't confuse the two. JSP is just an easy way to create servlets (i.e., web pages, code that can be invoked via an HTTP request), using Java as the pseudo-scripting language.
JSP tags are converted by the JSP engine into put Java code and then that pure Java code is compiled.
To make things more complicated, there are several "levels" of JSP tags. The oldest and simplest are very simple (and efficient!). But then there are MANY "tag libraries", so you have to decide which tag library (or libraries) you are going to use. And, finally, you can create your own tag libraries.
So try to keep JSP and Java and tag libraries separate. All are used together to create "JSP pages", but they are truly almost independent parts of the whole.