From the JavaDoc of getClassLoader()
Returns the class loader for the class. Some implementations may use null to represent the bootstrap class loader. This method will return null in such implementations if this class was loaded by the bootstrap class loader.
Bootstrap class loader is responsible for loading class which is defined in Java API. String
and Integer
class are getting loaded by Bootstrap class loader.