Where is ".class" declared in java?
1 answer
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
class
.
This expression, the keyword class
does not represent a member of the type.
+5
source to share