Question: What statement returns true if "nifty" is of type String?
- `"nifty".getType().equals("String")`
- `"nifty".getType() == String`
- `"nifty".getClass().getSimpleName() == "String"`
- `"nifty" instanceof String`
Answer: The correct answer of the above question is Option D:`"nifty" instanceof String`