Any class in the java has a .class , I want to know .class is a static method or not? Or it is a public static field?
boolean alwaysTrue = (String.class == C
https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.8.2
It's neither. It's an expression evaluated at compile time to the Class object for that class.
Class