Servlets are a general-purpose request/response mechanism built in
Java. REST is a convention for data interchange. Sure, you could
use servlets to build a REST API, but that doesn't make them the same thing.
It's like asking what the difference is between a pile of bricks, and a brick house. The bricks can be used to build the house, but you can't say that the bricks and the house are interchangeable.