Where is ".class" declared in java?
It is called a "class literal" and is formally defined in this section of the Java language specification:
A class literal is an expression consisting of the name of a class, interface, array, or primitive type or void pseudorange, followed by a '.' and a token
This expression, the keyword
does not represent a member of the type.
source to share