Question: What statement returns true if "nifty" is of type String?

  1. `"nifty".getType().equals("String")`
  2. `"nifty".getType() == String`
  3. `"nifty".getClass().getSimpleName() == "String"`
  4. `"nifty" instanceof String`

Answer: The correct answer of the above question is Option D:`"nifty" instanceof String`